Commit 3470ec5
committed
✅ Fix a slightly flaky test
Sometimes this test fails with:
```
1) mongo db connection
via url string with mongoPoll and pollDelay option
delays queryPoll but not commit:
Uncaught AssertionError: expected 1000 to be above 1000
+ expected - actual
at /home/runner/work/sharedb-mongo/sharedb-mongo/test/test_mongo.js:541:48
at /home/runner/work/sharedb-mongo/sharedb-mongo/index.js:133:2086
at /home/runner/work/sharedb-mongo/sharedb-mongo/index.js:133:109
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
```
We don't care about the exact millisecond, so this change updates the
assertion to `greaterThanOrEqual()`1 parent dc887c7 commit 3470ec5
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
538 | 538 | | |
539 | 539 | | |
540 | 540 | | |
541 | | - | |
| 541 | + | |
542 | 542 | | |
543 | 543 | | |
544 | 544 | | |
| |||
0 commit comments