mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
Wait for cache to update
This commit is contained in:
parent
aea910e36d
commit
1374422db5
1 changed files with 4 additions and 0 deletions
|
@ -552,6 +552,8 @@ export default function createAlertsAsDataFlappingTest({ getService }: FtrProvid
|
|||
status_change_threshold: 2,
|
||||
})
|
||||
.expect(200);
|
||||
// wait so cache expires
|
||||
await setTimeoutAsync(TEST_CACHE_EXPIRATION_TIME);
|
||||
|
||||
const pattern = {
|
||||
alertA: [true, false, true, false, true, false, true, false],
|
||||
|
@ -667,6 +669,8 @@ export default function createAlertsAsDataFlappingTest({ getService }: FtrProvid
|
|||
status_change_threshold: 2,
|
||||
})
|
||||
.expect(200);
|
||||
// wait so cache expires
|
||||
await setTimeoutAsync(TEST_CACHE_EXPIRATION_TIME);
|
||||
|
||||
const pattern = {
|
||||
alertA: [true, false, true, false, true, false, true, false],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue