Skip to content

Commit

Permalink
dates are not exact.
Browse files Browse the repository at this point in the history
Signed-off-by: Diana Barsan <[email protected]>
  • Loading branch information
dianabarsan committed Jul 31, 2023
1 parent 8196064 commit 7d955cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/integration/logging/logging.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(/.*/);
Expand All @@ -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);
Expand Down

0 comments on commit 7d955cb

Please sign in to comment.