1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-25 21:42:07 +01:00

[sinttest] Improve MultiUResultSyncPoint's TimoutException message

This commit is contained in:
Florian Schmaus 2024-05-20 15:11:28 +02:00
parent c4ce6b4707
commit e70d0cd858

View file

@ -40,7 +40,7 @@ public class MultiResultSyncPoint<R, E extends Exception> {
wait(deadline - now); wait(deadline - now);
now = System.currentTimeMillis(); now = System.currentTimeMillis();
} }
if (now >= deadline) throw new TimeoutException("Timeout waiting " + timeout + " millis"); if (now >= deadline) throw new TimeoutException("MultiResultSyncPoint timeout waiting " + timeout + " millis. Got " + results.size() + " results of " + expectedResultCount + " results");
if (exception != null) throw exception; if (exception != null) throw exception;
return new ArrayList<>(results); return new ArrayList<>(results);
} }