Skip to content

Commit 3b76454

Browse files
committed
fix(e2e): add delay
1 parent 8203e84 commit 3b76454

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

examples/12_async/src/store.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ const asyncActionHandlers: AsyncActionHandlers<
9090
const response = await fetch(
9191
'data:application/json;base64,eyJkYXRhIjp7ImZpcnN0X25hbWUiOiJFbW1hIn19',
9292
);
93+
await sleep(500);
9394
dispatch({ type: 'CONTINUE_FETCH_USER' });
9495
const data = await response.json();
9596
await sleep(500);

examples/13_saga/src/store.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ function* userFetcher(_action: AsyncActionFetch) {
8686
'data:application/json;base64,eyJkYXRhIjp7ImZpcnN0X25hbWUiOiJFbW1hIn19',
8787
),
8888
);
89+
yield delay(500);
8990
yield put<InnerAction>({ type: 'CONTINUE_FETCH_USER' });
9091
const data: { data: Record<string, unknown> } = yield call(() =>
9192
response.json(),

0 commit comments

Comments
 (0)