NO-JIRA improve Wait.asserEquals error message
This commit is contained in:
parent
a0e7cb4eae
commit
e766b2e6f6
|
@ -76,7 +76,7 @@ public class Wait {
|
|||
if (printThreadDump) {
|
||||
System.out.println(ThreadDumpUtil.threadDump("thread dump"));
|
||||
}
|
||||
Assert.fail(size + " != " + condition.getCount());
|
||||
Assert.assertEquals(size.longValue(), condition.getCount());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -102,7 +102,7 @@ public class Wait {
|
|||
boolean result = waitFor(() -> condition.getCount() == size, timeout, sleepMillis);
|
||||
|
||||
if (!result) {
|
||||
Assert.fail(size + " != " + condition.getCount());
|
||||
Assert.assertEquals(size, condition.getCount());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue