Index: runtime/vm/debugger_api_impl_test.cc |
diff --git a/runtime/vm/debugger_api_impl_test.cc b/runtime/vm/debugger_api_impl_test.cc |
index e539374da801f097646a4e454102d487fd8149bc..bd9e3e1cab43b0807e2c9813d2976c61658bbfe1 100644 |
--- a/runtime/vm/debugger_api_impl_test.cc |
+++ b/runtime/vm/debugger_api_impl_test.cc |
@@ -1405,6 +1405,7 @@ UNIT_TEST_CASE(Debug_IsolateID) { |
EXPECT(Dart_GetIsolateId(isolate) == test_isolate_id); |
Dart_ExitScope(); |
Dart_ShutdownIsolate(); |
+ Dart_SetIsolateEventHandler(NULL); |
EXPECT(verify_callback == 0x5); // Only created and shutdown events. |
} |