Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
chenhongSZ committed Mar 21, 2024
1 parent 22807e1 commit dc83971
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,14 @@ private List<String> consume(ChaosContainer<?> container, String url, String top
+ "\nError output:\n" + result.getStderr());
}
String output = result.getStdout();
Pattern message = Pattern.compile("----- got message -----\nkey:\\[null\\], properties:\\[\\], content:(.*)");
Pattern message = Pattern.compile(
"----- got message -----\npublishTime:\\[(.*)\\], eventTime:\\[(.*)\\], key:\\[null\\], "
+ "properties:\\[\\], content:(.*)");
Matcher matcher = message.matcher(output);
List<String> received = new ArrayList<>(MESSAGE_COUNT);
while (matcher.find()) {
received.add(matcher.group(1));
}
return received;
}

}

0 comments on commit dc83971

Please sign in to comment.