We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e75ff92 commit 2dd6aa2Copy full SHA for 2dd6aa2
test/waitlist.mjs
@@ -1,6 +1,7 @@
1
import assert from 'assert';
2
import supertest from 'supertest';
3
import * as sinon from 'sinon';
4
+import delay from 'delay';
5
import randomString from 'random-string';
6
import createUwave from './utils/createUwave.mjs';
7
import testSource from './utils/testSource.mjs';
@@ -81,6 +82,8 @@ describe('Waitlist', () => {
81
82
.expect(400);
83
84
await uw.test.connectToWebSocketAs(user);
85
+ // HACK: might stabilise tests? But really it indicates a bug/race condition
86
+ await delay(100);
87
88
await supertest(uw.server)
89
.post('/api/waitlist')
0 commit comments