@@ -88,7 +88,7 @@ public void testProactiveRebind() throws Exception {
88
88
assertEquals (0 , mockServer2 .getConnectedClientCount ());
89
89
90
90
// 2. Send MOVING notification on server1 -> MOVING 30 localhost:port2
91
- mockServer1 .sendPushMessageToAll ( "MOVING" , "30" , server2Address .toString ());
91
+ mockServer1 .sendMovingPushToAll ( 30L , server2Address .toString ());
92
92
93
93
// 3. Perform PING command
94
94
// This should trigger read of the MOVING notification and rebind to server2
@@ -132,7 +132,7 @@ public void testActiveConnectionShouldBeDisposedOnRebind() {
132
132
assertEquals (0 , mockServer2 .getConnectedClientCount ());
133
133
134
134
// 2. Send MOVING notification on server1 -> MOVING 30 localhost:port2
135
- mockServer1 .sendPushMessageToAll ( "MOVING" , "30" , server2Address .toString ());
135
+ mockServer1 .sendMovingPushToAll ( 30L , server2Address .toString ());
136
136
137
137
// 3. Active connection should be still usable until closed and returned to the pools
138
138
assertTrue (activeConnection .ping ());
@@ -176,7 +176,7 @@ public void testIdleConnectionShouldBeDisposedOnRebind() {
176
176
177
177
// 2. Send MOVING notification on server1 -> MOVING 30 localhost:port2
178
178
String server2Address = "localhost:" + mockServer2 .getPort ();
179
- mockServer1 .sendPushMessageToAll ( "MOVING" , "30" , server2Address );
179
+ mockServer1 .sendMovingPushToAll ( 30L , server2Address );
180
180
181
181
// 3. perform a command on active connection to trigger rebind
182
182
assertTrue (activeConnection .ping ());
@@ -213,7 +213,7 @@ public void testNewPoolConnectionsCreatedAgainstMovingTarget() {
213
213
assertEquals (0 , mockServer2 .getConnectedClientCount ());
214
214
215
215
// 2. Send MOVING notification on server1 -> MOVING 30 localhost:port2
216
- mockServer1 .sendPushMessageToAll ( "MOVING" , "30" , server2Address .toString ());
216
+ mockServer1 .sendMovingPushToAll ( 30L , server2Address .toString ());
217
217
218
218
// 3. perform a command on active connection to trigger rebind
219
219
assertTrue (activeConnection .ping ());
@@ -250,7 +250,7 @@ public void testPoolConnectionsWithProactiveRebindDisabled() {
250
250
assertEquals (0 , mockServer2 .getConnectedClientCount ());
251
251
252
252
// 2. Send MOVING notification on server1 -> MOVING 30 localhost:port2
253
- mockServer1 .sendPushMessageToAll ( "MOVING" , "30" , server2Address .toString ());
253
+ mockServer1 .sendMovingPushToAll ( 30L , server2Address .toString ());
254
254
255
255
// 3. Perform PING command
256
256
// This should trigger read of the MOVING notification processing
0 commit comments