Index: runtime/vm/isolate_test.cc |
diff --git a/runtime/vm/isolate_test.cc b/runtime/vm/isolate_test.cc |
index d5d87cffae2ee12d586cf3b9487469988b30e2b0..1caee5254b28d8f5b16154718b0cbd1478e16e00 100644 |
--- a/runtime/vm/isolate_test.cc |
+++ b/runtime/vm/isolate_test.cc |
@@ -74,7 +74,7 @@ TEST_CASE(IsolateSpawn) { |
result = Dart_Invoke(test_lib, NewString("testMain"), 0, NULL); |
- EXPECT(!Dart_IsError(result)); |
+ EXPECT_VALID(result); |
// Run until all ports to isolate are closed. |
result = Dart_RunLoop(); |
EXPECT_ERROR(result, |