Skip to content

Commit

Permalink
tests: make sure we always wait for the green status before trying to…
Browse files Browse the repository at this point in the history
… delete anything from session index.
  • Loading branch information
azasypkin committed Aug 14, 2020
1 parent 378c239 commit a4cdb60
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,8 @@ export default function ({ getService }: FtrProviderContext) {
}

describe('Session Idle cleanup', () => {
before(async () => {
await es.cluster.health({ index: '.kibana_security_session*', waitForStatus: 'green' });
});

beforeEach(async () => {
await es.cluster.health({ index: '.kibana_security_session*', waitForStatus: 'green' });
await es.deleteByQuery({
index: '.kibana_security_session*',
q: '*',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,8 @@ export default function ({ getService }: FtrProviderContext) {
}

describe('Session Lifespan cleanup', () => {
before(async () => {
await es.cluster.health({ index: '.kibana_security_session*', waitForStatus: 'green' });
});

beforeEach(async () => {
await es.cluster.health({ index: '.kibana_security_session*', waitForStatus: 'green' });
await es.deleteByQuery({
index: '.kibana_security_session*',
q: '*',
Expand Down

0 comments on commit a4cdb60

Please sign in to comment.