diff --git a/adot-testbed/app/src/test/java/software/amazon/adot/testbed/LogsTests.java b/adot-testbed/app/src/test/java/software/amazon/adot/testbed/LogsTests.java index 4d2501cbc..a2056902b 100644 --- a/adot-testbed/app/src/test/java/software/amazon/adot/testbed/LogsTests.java +++ b/adot-testbed/app/src/test/java/software/amazon/adot/testbed/LogsTests.java @@ -162,6 +162,7 @@ void validateLogs(String testLogStreamName, String logFilePath) throws Exception //Validate body field in JSON-messageToValidate with actual log line from the log file. assertThat(messageToValidate.containsAll(lines)).isTrue(); + assertThat(messageToValidate).containsExactlyInAnyOrderElementsOf(lines); return null; }); }