projects
/
websub-hub
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix a postgres-listener test
[websub-hub]
/
test
/
src
/
db
/
postgres-listener.js
diff --git
a/test/src/db/postgres-listener.js
b/test/src/db/postgres-listener.js
index 7926746ae95fe9e2c5e87e7541ee66c270394ed8..ecd2fe2ce4c06aabb47635c6edae4fcb5df80bfd 100644
(file)
--- 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() {
await listener.stop();
});
it('cancels pending reconnect', async function() {
+ this.slow(300);
const pendingReconnect = sinon.stub();
listener.reconnectPending = setTimeout(pendingReconnect, 100);
await listener.stop();
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 () {
assert(!pendingReconnect.called);
});
it('closes existing connection', async function () {