Index: test/cctest/test-api.cc |
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc |
index da3afcbc57375e8dbb88a8fcf0e7469b260bc69c..24cbafbab15b0d3cb2e44bb3037c7cdb359133d1 100644 |
--- a/test/cctest/test-api.cc |
+++ b/test/cctest/test-api.cc |
@@ -7500,7 +7500,8 @@ static void IndependentWeakHandle(bool global_gc, bool interlinked) { |
} |
// A single GC should be enough to reclaim the memory, since we are using |
// phantom handles. |
- CHECK_LT(CcTest::heap()->SizeOfObjects(), big_heap_size - 20000); |
+ // BUG(5865): --expose-wasm with no snapshot builds requires a limit change. |
+ CHECK_LT(CcTest::heap()->SizeOfObjects(), big_heap_size - 19000); |
CHECK(object_a.flag); |
CHECK(object_b.flag); |
} |