mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
Add async timeouts to correctly wait session cleanup in test (#176488)
## Summary Closes #164186 This PR addresses the potential issue of a sessions not being cleaned up by introducing a timeout before attempting to clean each one. Passing these [changes through FTR](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/5093) make it pass 100% of the time with 97 test runs.
This commit is contained in:
parent
1bffdd6528
commit
af5f4a0558
1 changed files with 3 additions and 0 deletions
|
@ -404,8 +404,11 @@ export default function ({ getService }: FtrProviderContext) {
|
|||
log.debug(`Starting SAML handshake 3 times.`);
|
||||
|
||||
const unauthenticatedSessionOne = await startSAMLHandshake();
|
||||
await setTimeoutAsync(500);
|
||||
const unauthenticatedSessionTwo = await startSAMLHandshake();
|
||||
await setTimeoutAsync(500);
|
||||
const unauthenticatedSessionThree = await startSAMLHandshake();
|
||||
await setTimeoutAsync(500);
|
||||
|
||||
log.debug('Waiting for all sessions to be persisted...');
|
||||
await retry.tryForTime(20000, async () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue