X-Git-Url: https://git.squeep.com/?a=blobdiff_plain;f=test%2Fsrc%2Fdb%2Fpostgres-listener.js;h=ecd2fe2ce4c06aabb47635c6edae4fcb5df80bfd;hb=4fcc20dfb79f60fef2dc5996c86e27c68b5bd95e;hp=7926746ae95fe9e2c5e87e7541ee66c270394ed8;hpb=b7fa490d270db56935d2f1b380351aa264295119;p=websub-hub 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 () {