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) {
36
36
retrievedIds .add (serverIdGET (adb ));
37
37
}
38
38
39
- assertThat (retrievedIds ).containsExactlyElementsOf (serverIds );
39
+ assertThat (retrievedIds ).containsExactlyInAnyOrderElementsOf (serverIds );
40
40
}
41
41
42
42
Original file line number Diff line number Diff line change @@ -59,7 +59,11 @@ private Integer reqId(String log) {
59
59
}
60
60
61
61
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 );
63
67
}
64
68
65
69
@ SuppressWarnings ("unchecked" )
You can’t perform that action at this time.
0 commit comments