Fix flaky test in LogMessageTest (#1506)

Co-authored-by: balasukesh <bbelide2@fa23-cs527-002.cs.illinois.edu>
pull/1507/head
Bala Sukesh 1 year ago committed by GitHub
parent 725a252734
commit 265bf6ed70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -82,7 +82,8 @@ public class LogMessageTest {
logMessage.setMsg(MESSAGE);
logMessage.kv("key1", "value1");
logMessage.kv("key2", "value2");
assertEquals("messagekey1=value1||key2=value2", logMessage.toString());
String output = logMessage.toString();
assertTrue(output.equals("messagekey1=value1||key2=value2") || output.equals("messagekey2=value2||key1=value1"));
}
@Test

Loading…
Cancel
Save