Skip to content

Commit da6f4f4

Browse files
committed
fix(test): call ping() after connect() in WatchersTest
IProtoClientWatchersTest uses connect() without auth. Since watchers are now sent after ping() (TNTP-10388 fix), ping must be called to trigger watcher registration.
1 parent e5b27e7 commit da6f4f4

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎tarantool-core/src/test/java/io/tarantool/core/integration/IProtoClientWatchersTest.java‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ private IProtoClient getClientAndConnect(TarantoolContainer<?> tt) throws Except
5858
InetSocketAddress address = tt.mappedAddress();
5959
IProtoClient client = new IProtoClientImpl(factory, factory.getTimerService());
6060
client.connect(address, 3_000).get();
61+
// Complete the handshake with ping so that watchers are sent
62+
client.ping().get();
6163
return client;
6264
}
6365

0 commit comments

Comments
 (0)