From 4fcc20dfb79f60fef2dc5996c86e27c68b5bd95e Mon Sep 17 00:00:00 2001 From: Justin Wind Date: Mon, 16 Aug 2021 11:45:50 -0700 Subject: [PATCH] fix a postgres-listener test --- test/src/db/postgres-listener.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 () { -- 2.43.2