diff --git a/test/util.ts b/test/util.ts index f690a73..c552596 100644 --- a/test/util.ts +++ b/test/util.ts @@ -145,6 +145,11 @@ export function setup({ redisClients.push(redisClient); ports.push(port); if (servers.length === nodeCount) { + // ensure all nodes know each other + servers[0].emit("ping"); + servers[1].emit("ping"); + servers[2].emit("ping"); + await sleep(200); resolve({