fix a postgres-listener test
[websub-hub] / test / src / db / postgres-listener.js
index 7926746ae95fe9e2c5e87e7541ee66c270394ed8..ecd2fe2ce4c06aabb47635c6edae4fcb5df80bfd 100644 (file)
@@ -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 () {