File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
resilience-tests/src/test/java/resilience Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ void acquireHostList(Protocol protocol) {
3636 retrievedIds .add (serverIdGET (adb ));
3737 }
3838
39- assertThat (retrievedIds ).containsExactlyElementsOf (serverIds );
39+ assertThat (retrievedIds ).containsExactlyInAnyOrderElementsOf (serverIds );
4040 }
4141
4242
Original file line number Diff line number Diff line change @@ -59,7 +59,11 @@ private Integer reqId(String log) {
5959 }
6060
6161 private String meta (String log ) {
62- return log .substring (log .indexOf ("]: " ) + 3 , log .indexOf ("} {" ) + 1 );
62+ int endIdx = log .indexOf ("} {" ) + 1 ;
63+ if (endIdx == 0 ) {
64+ endIdx = log .length ();
65+ }
66+ return log .substring (log .indexOf ("]: " ) + 3 , endIdx );
6367 }
6468
6569 @ SuppressWarnings ("unchecked" )
You can’t perform that action at this time.
0 commit comments