@@ -94,17 +94,13 @@ public void stopCapturingLogs() {
9494 public void should_initialize_all_channels (boolean reuseAddress ) {
9595 Map <Pattern , Integer > expectedOccurences =
9696 ImmutableMap .of (
97- Pattern .compile (
98- ".*127\\ .0\\ .0\\ .2:19042.*Reconnection attempt complete, 6/6 channels.*" ),
99- 1 ,
100- Pattern .compile (
101- ".*127\\ .0\\ .0\\ .1:19042.*Reconnection attempt complete, 6/6 channels.*" ),
102- 1 ,
97+ Pattern .compile (".*\\ .2:19042.*Reconnection attempt complete, 6/6 channels.*" ), 1 ,
98+ Pattern .compile (".*\\ .1:19042.*Reconnection attempt complete, 6/6 channels.*" ), 1 ,
10399 Pattern .compile (".*Reconnection attempt complete.*" ), 2 ,
104- Pattern .compile (".*127 \\ .0 \\ .0 \\ .1:19042.*New channel added \\ [.*" ), 5 ,
105- Pattern .compile (".*127 \\ .0 \\ .0 \\ .2:19042.*New channel added \\ [.*" ), 5 ,
106- Pattern .compile (".*127 \\ .0 \\ .0 \\ .1:19042\\ ] Trying to create 5 missing channels.*" ), 1 ,
107- Pattern .compile (".*127 \\ .0 \\ .0 \\ .2:19042\\ ] Trying to create 5 missing channels.*" ), 1 );
100+ Pattern .compile (".*\\ .1:19042.*New channel added \\ [.*" ), 5 ,
101+ Pattern .compile (".*\\ .2:19042.*New channel added \\ [.*" ), 5 ,
102+ Pattern .compile (".*\\ .1:19042\\ ] Trying to create 5 missing channels.*" ), 1 ,
103+ Pattern .compile (".*\\ .2:19042\\ ] Trying to create 5 missing channels.*" ), 1 );
108104 DriverConfigLoader loader =
109105 SessionUtils .configLoaderBuilder ()
110106 .withBoolean (DefaultDriverOption .SOCKET_REUSE_ADDRESS , reuseAddress )
@@ -204,20 +200,15 @@ public void should_not_struggle_to_fill_pools() {
204200 int tolerance = 2 ; // Sometimes socket ends up already in use
205201 Map <Pattern , Integer > expectedOccurences =
206202 ImmutableMap .of (
207- Pattern .compile (
208- ".*127\\ .0\\ .0\\ .2:19042.*Reconnection attempt complete, 66/66 channels.*" ),
203+ Pattern .compile (".*\\ .2:19042.*Reconnection attempt complete, 66/66 channels.*" ),
209204 1 * sessions ,
210- Pattern .compile (
211- ".*127\\ .0\\ .0\\ .1:19042.*Reconnection attempt complete, 66/66 channels.*" ),
205+ Pattern .compile (".*\\ .1:19042.*Reconnection attempt complete, 66/66 channels.*" ),
212206 1 * sessions ,
213207 Pattern .compile (".*Reconnection attempt complete.*" ), 2 * sessions ,
214- Pattern .compile (".*127\\ .0\\ .0\\ .1:19042.*New channel added \\ [.*" ),
215- 65 * sessions - tolerance ,
216- Pattern .compile (".*127\\ .0\\ .0\\ .2:19042.*New channel added \\ [.*" ),
217- 65 * sessions - tolerance ,
218- Pattern .compile (".*127\\ .0\\ .0\\ .1:19042\\ ] Trying to create 65 missing channels.*" ),
219- 1 * sessions ,
220- Pattern .compile (".*127\\ .0\\ .0\\ .2:19042\\ ] Trying to create 65 missing channels.*" ),
208+ Pattern .compile (".*.1:19042.*New channel added \\ [.*" ), 65 * sessions - tolerance ,
209+ Pattern .compile (".*.2:19042.*New channel added \\ [.*" ), 65 * sessions - tolerance ,
210+ Pattern .compile (".*.1:19042\\ ] Trying to create 65 missing channels.*" ), 1 * sessions ,
211+ Pattern .compile (".*.2:19042\\ ] Trying to create 65 missing channels.*" ),
221212 1 * sessions );
222213 expectedOccurences .forEach (
223214 (pattern , times ) -> assertMatchesAtLeast (pattern , times , appender .list ));
0 commit comments