Skip to content

Commit

Permalink
Remove extra wait time from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewbaldwin44 committed Nov 30, 2024
1 parent 665101e commit 2760b74
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions locust/webui/src/hooks/tests/useFetchStats.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ describe('useFetchStats', () => {
swarm: { state: SWARM_STATE.RUNNING },
});

await act(async () => {
await vi.advanceTimersByTimeAsync(2000);
});
await act(async () => {
await vi.advanceTimersByTimeAsync(2000);
});
Expand All @@ -67,9 +64,6 @@ describe('useFetchStats', () => {
store.dispatch(swarmActions.setSwarm({ state: SWARM_STATE.RUNNING }));
});

await act(async () => {
await vi.advanceTimersByTimeAsync(2000);
});
await act(async () => {
await vi.advanceTimersByTimeAsync(2000);
});
Expand Down

0 comments on commit 2760b74

Please sign in to comment.