Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
test: πŸ’ delete a flaky test (elastic#70785)
  • Loading branch information
streamich committed Jul 6, 2020
1 parent 226b4e7 commit 2c27bad
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/plugins/expressions/common/execution/execution.test.ts
Expand Up @@ -475,17 +475,6 @@ describe('Execution', () => {
}
});

test('sets duration to 10 milliseconds when function executes 10 milliseconds', async () => {
const execution = createExecution('sleep 10', {}, true);
execution.start(-1);
await execution.result;

const node = execution.state.get().ast.chain[0];
expect(typeof node.debug?.duration).toBe('number');
expect(node.debug?.duration).toBeLessThan(50);
expect(node.debug?.duration).toBeGreaterThanOrEqual(5);
});

test('adds .debug field in expression AST on each executed function', async () => {
const execution = createExecution('add val=1 | add val=2 | add val=3', {}, true);
execution.start(-1);
Expand Down

0 comments on commit 2c27bad

Please sign in to comment.