From e766b2e6f6943eb8156185184062a60e4feec4d2 Mon Sep 17 00:00:00 2001 From: Justin Bertram Date: Thu, 24 Mar 2022 13:15:31 -0500 Subject: [PATCH] NO-JIRA improve Wait.asserEquals error message --- .../src/test/java/org/apache/activemq/artemis/utils/Wait.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/artemis-commons/src/test/java/org/apache/activemq/artemis/utils/Wait.java b/artemis-commons/src/test/java/org/apache/activemq/artemis/utils/Wait.java index 4d780daaca..7d900bf68b 100644 --- a/artemis-commons/src/test/java/org/apache/activemq/artemis/utils/Wait.java +++ b/artemis-commons/src/test/java/org/apache/activemq/artemis/utils/Wait.java @@ -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()); } }