Skip to content

Commit

Permalink
Avoid triggering #31 in tests
Browse files Browse the repository at this point in the history
This doesn't fix the underlying problem, but it is very helpful for
tests to not randomly fail for reasons that have nothing to do with the
commit.
  • Loading branch information
dalcde committed Sep 3, 2020
1 parent 51e2e17 commit 4d6c5db
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/tests/01-sync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,11 @@ test('Leave mattermost team when all channels left', async t => {
// are processed. We don't check it because the bridge will be killed after
// this.
await Promise.all([
waitEvent(main(), 'matrix', 2),
waitEvent(main(), 'matrix'),
matrixClient.leave(MATRIX_ROOM_IDS['off-topic']),
]);
await Promise.all([
waitEvent(main(), 'matrix'),
matrixClient.leave(MATRIX_ROOM_IDS['town-square']),
]);

Expand All @@ -216,8 +219,11 @@ test('Leave mattermost team when all channels left', async t => {
);

await Promise.all([
waitEvent(main(), 'matrix', 2),
waitEvent(main(), 'matrix'),
matrixClient.joinRoom(MATRIX_ROOM_IDS['off-topic']),
]);
await Promise.all([
waitEvent(main(), 'matrix'),
matrixClient.joinRoom(MATRIX_ROOM_IDS['town-square']),
]);

Expand Down

0 comments on commit 4d6c5db

Please sign in to comment.