mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
[ResponseOps][Alerting] Flaky test x-pack/plugins/event_log/server/es (#162558)
https://github.com/elastic/kibana/issues/156061 ## Summary Fixes flaky test by adding ceil(). When it fails the time elapsed is close to the `MOCK_RETRY_DELAY` of 20 (like 19.7), so rounding up helps with the flakiness
This commit is contained in:
parent
d74d33f757
commit
e66d949198
1 changed files with 2 additions and 3 deletions
|
@ -455,8 +455,7 @@ describe('parseIndexAliases', () => {
|
|||
});
|
||||
});
|
||||
|
||||
// FLAKY: https://github.com/elastic/kibana/issues/156061
|
||||
describe.skip('retries', () => {
|
||||
describe('retries', () => {
|
||||
let esContext = contextMock.create();
|
||||
// set up context APIs to return defaults indicating already created
|
||||
beforeEach(() => {
|
||||
|
@ -474,7 +473,7 @@ describe.skip('retries', () => {
|
|||
|
||||
const timeStart = performance.now();
|
||||
await initializeEs(esContext);
|
||||
const timeElapsed = performance.now() - timeStart;
|
||||
const timeElapsed = Math.ceil(performance.now() - timeStart);
|
||||
|
||||
expect(timeElapsed).toBeGreaterThanOrEqual(MOCK_RETRY_DELAY);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue