mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-22 20:12:07 +01:00
[sinttest] Improve MultiUResultSyncPoint's TimoutException message
This commit is contained in:
parent
c4ce6b4707
commit
e70d0cd858
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue