Index: test/cctest/heap/test-mark-compact.cc |
diff --git a/test/cctest/heap/test-mark-compact.cc b/test/cctest/heap/test-mark-compact.cc |
index 6ed1abbf96f17d990965611961bafd6edd5c3692..0788e26108238052e35b224ff0633675b8e90681 100644 |
--- a/test/cctest/heap/test-mark-compact.cc |
+++ b/test/cctest/heap/test-mark-compact.cc |
@@ -69,6 +69,7 @@ TEST(MarkingDeque) { |
CHECK_EQ(original_address, current_address); |
s.StopUsing(); |
+ CcTest::i_isolate()->cancelable_task_manager()->CancelAndWait(); |
s.TearDown(); |
} |