Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

Wait for the old relay to let go in the relay failover test

mecriminoacb6b9af95c7
diff --git a/companion/test/e2e/relay-client.test.ts b/companion/test/e2e/relay-client.test.ts
index d539f746c6..79329b89a2 100644
--- a/companion/test/e2e/relay-client.test.ts
+++ b/companion/test/e2e/relay-client.test.ts
@@ -123,7 +123,7 @@ describe("the relay client", () => {
const first = await relayAt(firstPort);
await waitFor(() => instance.node === "relay1.openmausbot.com", 5_000);
await waitFor(() => first.admitted(hid).size === 2);
- expect(second.hosts.has(hid)).toBe(false);
+ await waitFor(() => !second.hosts.has(hid));
});
it("redials at once when the wall clock jumps past the monotonic one (sleep)", async () => {