[Flaky test] Add missing await in infrastructure_security test suite (#166721)

Fixes #164250 

[Successful pipeline in the flaky test
runner](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/3191).

@crespocarlos spotted the missing `await` that might cause the
`infrastructure_security` suite to still be running along
`infrastructure_spaces` and cause race conditions.
This commit is contained in:
Mykola Harmash 2023-09-20 14:26:26 +02:00 committed by GitHub
parent 8b215485f9
commit 8dd4323d6c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -372,7 +372,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
ensureCurrentUrl: false,
shouldLoginIfPrompted: false,
});
PageObjects.error.expectForbidden();
await PageObjects.error.expectForbidden();
});
});
});