Index: tests/standalone/io/raw_synchronous_socket_test.dart |
diff --git a/tests/standalone/io/raw_synchronous_socket_test.dart b/tests/standalone/io/raw_synchronous_socket_test.dart |
index 28236b987183d7eaa23904936d7b60798302f922..44d9cbc90463bbf12730dc0902cbdfcfe11df182 100644 |
--- a/tests/standalone/io/raw_synchronous_socket_test.dart |
+++ b/tests/standalone/io/raw_synchronous_socket_test.dart |
@@ -20,8 +20,6 @@ void testArguments() { |
() => RawSynchronousSocket.connectSync(LOOPBACK_IP_V4_STRING, 65536)); |
Expect.throws( |
() => RawSynchronousSocket.connectSync(LOOPBACK_IP_V4_STRING, -1)); |
- Expect.throws(() => |
- RawSynchronousSocket.connectSync(LOOPBACK_IP_V4_STRING, 0, backlog: -1)); |
} |
// The connection attempt happens on the main Dart thread and the OS timeout can |
@@ -189,7 +187,7 @@ Future echoServer(var sendPort) async { |
}, onDone: () { |
// Let the client know we're shutting down then kill the isolate. |
sendPort.send(null); |
- kill(); |
+ Isolate.current.kill(); |
}); |
}); |
} |