Skip to content

Commit

Permalink
[Endpoint] FIX: Increase tests sleep default duration back to 100ms (
Browse files Browse the repository at this point in the history
…#55492)

Revert `sleep()` default duration, in the saga tests, back to 100ms in order to prevent intermittent failures during CI runs.

Fixes #55464
Fixes #55465
  • Loading branch information
paul-tavares authored Jan 22, 2020
1 parent 5d50141 commit e2230d5
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,12 @@
import { createSagaMiddleware, SagaContext, SagaMiddleware } from './index';
import { applyMiddleware, createStore, Reducer, Store } from 'redux';

// Failing: https://github.com/elastic/kibana/issues/55464 https://github.com/elastic/kibana/issues/55465
describe.skip('saga', () => {
describe('saga', () => {
const INCREMENT_COUNTER = 'INCREMENT';
const DELAYED_INCREMENT_COUNTER = 'DELAYED INCREMENT COUNTER';
const STOP_SAGA_PROCESSING = 'BREAK ASYNC ITERATOR';

const sleep = (ms = 10) => new Promise(resolve => setTimeout(resolve, ms));
const sleep = (ms = 100) => new Promise(resolve => setTimeout(resolve, ms));
let store: Store;
let reducerA: Reducer;
let sideAffect: (a: unknown, s: unknown) => void;
Expand Down

0 comments on commit e2230d5

Please sign in to comment.