Skip to content

Commit 0a33194

Browse files
authored
Merge pull request Expensify#67129 from twilight2294/patch-40
[No QA]: Fix Flaky test for `tests/actions/ReportTest.ts`
2 parents 559f76b + 690b56a commit 0a33194

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

tests/actions/ReportTest.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,10 @@ describe('actions/Report', () => {
7171

7272
beforeEach(() => {
7373
HttpUtils.xhr = originalXHR;
74-
const promise = Onyx.clear().then(jest.useRealTimers);
74+
const promise = Onyx.clear().then(() => {
75+
jest.useRealTimers();
76+
waitForBatchedUpdates();
77+
});
7578

7679
if (getIsUsingFakeTimers()) {
7780
// flushing pending timers

0 commit comments

Comments
 (0)