From 7d955cbd8aab0ff8d8a31163b5e5add931c585c6 Mon Sep 17 00:00:00 2001 From: Diana Barsan Date: Mon, 31 Jul 2023 20:42:44 +0300 Subject: [PATCH] dates are not exact. Signed-off-by: Diana Barsan --- tests/integration/logging/logging.spec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/integration/logging/logging.spec.js b/tests/integration/logging/logging.spec.js index bdbdc0f438c..c316c7ed846 100644 --- a/tests/integration/logging/logging.spec.js +++ b/tests/integration/logging/logging.spec.js @@ -13,7 +13,7 @@ const validLog = (line, before, after) => { describe('logging', () => { it('logs should include formatted date in API and Sentinel', async () => { const before = moment.utc(); - await utils.delayPromise(500); // dates are not exact + await utils.delayPromise(1000); // dates are not exact const collectApiLogs = await utils.collectApiLogs(/.*/); const collectSentinelLogs = await utils.collectApiLogs(/.*/); @@ -23,7 +23,7 @@ describe('logging', () => { const apiLogs = (await collectApiLogs()).filter(log => log.length); const sentinelLogs = (await collectSentinelLogs()).filter(log => log.length); - await utils.delayPromise(500); // dates are not exact + await utils.delayPromise(1000); // dates are not exact const after = moment.utc(); expect(apiLogs.length).to.be.greaterThan(0);