Skip to content

Commit

Permalink
Fix flaky test in LogMessageTest (#1506)
Browse files Browse the repository at this point in the history
Co-authored-by: balasukesh <[email protected]>
  • Loading branch information
bbelide2 and balasukesh authored Nov 1, 2023
1 parent 725a252 commit 265bf6e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ public void testToStringShouldPrintMessageAndAllKeyAndValuePairs() {
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
Expand Down

0 comments on commit 265bf6e

Please sign in to comment.