Skip to content

Commit

Permalink
Fix flaky migrations tests (elastic#111365)
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 committed Sep 8, 2021
1 parent 3685c74 commit e5e3125
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 e5e3125

Please sign in to comment.