Skip to content

Commit

Permalink
[ML] Add comment to clarify test structure.
Browse files Browse the repository at this point in the history
  • Loading branch information
walterra committed Aug 10, 2022
1 parent 64fff29 commit 4ad0a05
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,9 @@ describe('useFailedTransactionsCorrelations', () => {
);

try {
// Each simulated request takes 100ms. After an inital 50ms
// we track the internal requests the hook is running and
// check the expected progress after these requests.
jest.advanceTimersByTime(50);
await waitFor(() => expect(result.current.progress.loaded).toBe(0));
jest.advanceTimersByTime(100);
Expand Down

0 comments on commit 4ad0a05

Please sign in to comment.