Skip to content

Commit

Permalink
Fix flaky migrations tests (#111365) (#111524)
Browse files Browse the repository at this point in the history
# Conflicts:
#	src/core/server/saved_objects/migrationsv2/integration_tests/batch_size_bytes.test.ts
  • Loading branch information
rudolf authored Sep 8, 2021
1 parent b1c465d commit 82fcb24
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ describe('retry', () => {
},
{ retryAttempts: 3, retryDelayMs: 100 }
);
expect(Date.now() - now).toBeGreaterThanOrEqual(200);
// Would expect it to take 200ms but seems like timing inaccuracies
// sometimes causes the duration to be measured as 199ms
expect(Date.now() - now).toBeGreaterThanOrEqual(199);
});
});

0 comments on commit 82fcb24

Please sign in to comment.