Skip to content

Commit 56d65d6

Browse files
committed
remove a test that will obviously be flaky sometimes
1 parent 8bc231a commit 56d65d6

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/packages/backend/conat/test/cluster/pubsub.test.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,13 @@ describe("the most basic pub/sub test with a 2-node cluster", () => {
2929
sub = await client0.subscribe("cocalc");
3030
});
3131

32-
it("publish -- message is initially dropped with no receiver because interest doesn't propogate instantly", async () => {
33-
const { count } = await client1.publish("cocalc", "hi");
34-
expect(count).toBe(0);
35-
});
32+
// commenting this out, since it is impossible to robustly test in all cases,
33+
// since sometmes the subscription info can move very quickly and this publish
34+
// could be slow!
35+
// it("publish -- message is initially dropped with no receiver because interest doesn't propogate instantly", async () => {
36+
// const { count } = await client1.publish("cocalc", "hi");
37+
// expect(count).toBe(0);
38+
// });
3639

3740
it("publish after waiting for interest -- this works", async () => {
3841
await client1.waitForInterest("cocalc");

0 commit comments

Comments
 (0)