From: Justin Wind Date: Mon, 16 Aug 2021 18:45:50 +0000 (-0700) Subject: fix a postgres-listener test X-Git-Tag: v1.1.4^2~2 X-Git-Url: http://git.squeep.com/?p=websub-hub;a=commitdiff_plain;h=4fcc20dfb79f60fef2dc5996c86e27c68b5bd95e fix a postgres-listener test --- diff --git a/test/src/db/postgres-listener.js b/test/src/db/postgres-listener.js index 7926746..ecd2fe2 100644 --- a/test/src/db/postgres-listener.js +++ b/test/src/db/postgres-listener.js @@ -52,10 +52,11 @@ describe('Postgres Listener', function () { await listener.stop(); }); it('cancels pending reconnect', async function() { + this.slow(300); const pendingReconnect = sinon.stub(); listener.reconnectPending = setTimeout(pendingReconnect, 100); await listener.stop(); - snooze(110); + await snooze(110); assert(!pendingReconnect.called); }); it('closes existing connection', async function () {