diff --git a/test/cctest/test_platform.cc b/test/cctest/test_platform.cc index c2d78938130006..8aed5c007e0efb 100644 --- a/test/cctest/test_platform.cc +++ b/test/cctest/test_platform.cc @@ -24,7 +24,9 @@ class RepostingTask : public v8::Task { if (repost_count_ > 0) { --repost_count_; std::shared_ptr task_runner = - platform_->GetForegroundTaskRunner(isolate_); + platform_->GetForegroundTaskRunner( + isolate_, + v8::TaskPriority::kUserBlocking); task_runner->PostTask(std::make_unique( repost_count_, run_count_, isolate_, platform_)); } @@ -46,7 +48,7 @@ TEST_F(PlatformTest, SkipNewTasksInFlushForegroundTasks) { Env env {handle_scope, argv}; int run_count = 0; std::shared_ptr task_runner = - platform->GetForegroundTaskRunner(isolate_); + platform->GetForegroundTaskRunner(isolate_, v8::TaskPriority::kUserBlocking); task_runner->PostTask( std::make_unique(2, &run_count, isolate_, platform.get())); EXPECT_TRUE(platform->FlushForegroundTasks(isolate_));