Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions test/waitlist.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import assert from 'assert';
import supertest from 'supertest';
import * as sinon from 'sinon';
import delay from 'delay';
import randomString from 'random-string';
import createUwave from './utils/createUwave.mjs';
import testSource from './utils/testSource.mjs';
Expand Down Expand Up @@ -81,6 +82,8 @@ describe('Waitlist', () => {
.expect(400);

await uw.test.connectToWebSocketAs(user);
// HACK: might stabilise tests? But really it indicates a bug/race condition
await delay(100);

await supertest(uw.server)
.post('/api/waitlist')
Expand Down