@@ -94,17 +94,13 @@ public void stopCapturingLogs() {
94
94
public void should_initialize_all_channels (boolean reuseAddress ) {
95
95
Map <Pattern , Integer > expectedOccurences =
96
96
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 ,
103
99
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 );
108
104
DriverConfigLoader loader =
109
105
SessionUtils .configLoaderBuilder ()
110
106
.withBoolean (DefaultDriverOption .SOCKET_REUSE_ADDRESS , reuseAddress )
@@ -204,20 +200,15 @@ public void should_not_struggle_to_fill_pools() {
204
200
int tolerance = 2 ; // Sometimes socket ends up already in use
205
201
Map <Pattern , Integer > expectedOccurences =
206
202
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.*" ),
209
204
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.*" ),
212
206
1 * sessions ,
213
207
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.*" ),
221
212
1 * sessions );
222
213
expectedOccurences .forEach (
223
214
(pattern , times ) -> assertMatchesAtLeast (pattern , times , appender .list ));
0 commit comments