Skip to content

Commit

Permalink
Fixing flaky test (#81901)
Browse files Browse the repository at this point in the history
  • Loading branch information
ymao1 authored Oct 28, 2020
1 parent 6272f4e commit e7f425a
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@ export default function ({ getService }: FtrProviderContext) {
const testHistoryIndex = '.kibana_task_manager_test_result';
const supertest = supertestAsPromised(url.format(config.get('servers.kibana')));

// Failing: See https://github.com/elastic/kibana/issues/81853
describe.skip('scheduling and running tasks', () => {
describe('scheduling and running tasks', () => {
beforeEach(
async () => await supertest.delete('/api/sample_tasks').set('kbn-xsrf', 'xxx').expect(200)
);
Expand Down Expand Up @@ -673,7 +672,7 @@ export default function ({ getService }: FtrProviderContext) {
const [scheduledTask] = (await currentTasks()).docs;
expect(scheduledTask.id).to.eql(task.id);
expect(scheduledTask.status).to.eql('claiming');
expect(scheduledTask.attempts).to.eql(4);
expect(scheduledTask.attempts).to.be.greaterThan(3);
});
});
});
Expand Down

0 comments on commit e7f425a

Please sign in to comment.