NO-JIRA improve Wait.asserEquals error message

This commit is contained in:
Justin Bertram 2022-03-24 13:15:31 -05:00
parent a0e7cb4eae
commit e766b2e6f6
No known key found for this signature in database
GPG Key ID: F41830B875BB8633
1 changed files with 2 additions and 2 deletions

View File

@ -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());
}
}