From 1293047d6063f3508af15e68cca916660ded791e Mon Sep 17 00:00:00 2001 From: sweetliquid Date: Sat, 16 Mar 2024 04:21:46 +0800 Subject: [PATCH] Fix log assertion in cancels tasks in Scheduler-test (#28562) --- packages/scheduler/src/__tests__/Scheduler-test.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/scheduler/src/__tests__/Scheduler-test.js b/packages/scheduler/src/__tests__/Scheduler-test.js index 0dc9763ac6b0b..d2695d7e04600 100644 --- a/packages/scheduler/src/__tests__/Scheduler-test.js +++ b/packages/scheduler/src/__tests__/Scheduler-test.js @@ -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', () => {