catalog-backend: add margin for test execution

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2021-08-20 18:19:56 +02:00
parent 620bb7b822
commit 7723e90b20
@@ -1011,9 +1011,8 @@ describe('Default Processing Database', () => {
.where('entity_ref', 'location:default/new-root')
.select();
const nextUpdate = parseDate(result[0].next_update_at);
expect(nextUpdate.diff(now, 'seconds').seconds).toBeGreaterThanOrEqual(
100,
);
const nextUpdateDiff = nextUpdate.diff(now, 'seconds');
expect(nextUpdateDiff.seconds).toBeGreaterThanOrEqual(90);
},
60_000,
);