Skip to content

Commit

Permalink
Add some message buffering
Browse files Browse the repository at this point in the history
  • Loading branch information
Half-Shot committed Apr 11, 2024
1 parent 8456a24 commit ba4385e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spec/e2e/quit.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ describe.only('Ensure quit messsage is sent', () => {
const cRoomId = await testEnv.joinChannelHelper(alice, adminRoom, channel);

// Ensure we join the IRC side
await alice.sendText(cRoomId, `Hello world!`);
alice.sendText(cRoomId, `Hello world!`);
await bob.waitForEvent('message', 10000);

const quitEvent = bob.waitForEvent('quit', 10000);
Expand All @@ -39,5 +39,7 @@ describe.only('Ensure quit messsage is sent', () => {
expect(nick).toEqual(`M-${opts.matrixLocalparts?.[0]}`);
expect(message).toEqual('Quit: Reconnecting');
expect(channels).toContain(channel);
alice.sendText(cRoomId, `I'm back baby!`);
await bob.waitForEvent('message', 10000);
});
});

0 comments on commit ba4385e

Please sign in to comment.