Skip to content

Commit e90046a

Browse files
sweetliquidAndyPengc12
authored andcommitted
Fix log assertion in cancels tasks in Scheduler-test (facebook#28562)
1 parent a681e08 commit e90046a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/scheduler/src/__tests__/Scheduler-test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,8 @@ describe('SchedulerBrowser', () => {
247247
});
248248
runtime.assertLog(['Post Message']);
249249
cancelCallback(task);
250-
runtime.assertLog([]);
250+
runtime.fireMessageEvent();
251+
runtime.assertLog(['Message Event']);
251252
});
252253

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

0 commit comments

Comments
 (0)