Skip to content

Commit

Permalink
test: disable leave event check
Browse files Browse the repository at this point in the history
  • Loading branch information
marcus-pousette committed Oct 21, 2024
1 parent 5614dfb commit b6f9aa8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/programs/data/shared-log/test/replicate.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -750,15 +750,15 @@ describe(`replicate`, () => {
},
});
let joinEvents = 0;
let leaveEvents = 0;
/* let leaveEvents = 0; */

db1.log.events.addEventListener("replicator:join", () => {
joinEvents++;
});

db1.log.events.addEventListener("replicator:leave", () => {
/* db1.log.events.addEventListener("replicator:leave", () => {
leaveEvents++;
});
}); */

await waitForResolved(async () => {
const segments = await db1.log.replicationIndex.iterate().all();
Expand All @@ -768,7 +768,7 @@ describe(`replicate`, () => {
);
});
expect(joinEvents).to.equal(0);
expect(leaveEvents).to.equal(0);
/* expect(leaveEvents).to.equal(0); */ // TODO assert correctly (this assertion is flaky since leave events can happen due to that the goodbye from the pubsub layer is delayed)
});

it("segments updated while offline", async () => {
Expand Down

0 comments on commit b6f9aa8

Please sign in to comment.