Wait for cache to update

This commit is contained in:
Mike Cote 2024-10-21 13:25:49 -04:00
parent aea910e36d
commit 1374422db5

View file

@ -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],