Skip to content

Commit

Permalink
Fix log assertion in cancels tasks in Scheduler-test (facebook#28562)
Browse files Browse the repository at this point in the history
  • Loading branch information
sweetliquid authored and AndyPengc12 committed Apr 15, 2024
1 parent a681e08 commit e90046a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/scheduler/src/__tests__/Scheduler-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,8 @@ describe('SchedulerBrowser', () => {
});
runtime.assertLog(['Post Message']);
cancelCallback(task);
runtime.assertLog([]);
runtime.fireMessageEvent();
runtime.assertLog(['Message Event']);
});

it('throws when a task errors then continues in a new event', () => {
Expand Down

0 comments on commit e90046a

Please sign in to comment.