From 42830afa26414bb9d5dd59a06981480e3237f8a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9e=20Kooi?= Date: Mon, 12 Jan 2026 12:39:19 +0100 Subject: [PATCH 1/2] Add hacky delay to stabilise waitlist test This is not the right way to solve it but a stopgap. --- test/waitlist.mjs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/waitlist.mjs b/test/waitlist.mjs index 3ab0df11..92e5b876 100644 --- a/test/waitlist.mjs +++ b/test/waitlist.mjs @@ -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'; @@ -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') From 8db29dd7c5efc0469d331f13e16d4fa407804178 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9e=20Kooi?= Date: Mon, 12 Jan 2026 12:45:53 +0100 Subject: [PATCH 2/2] dummy