Index: tests/isolate/src/SerializationTest.dart |
diff --git a/tests/isolate/src/SerializationTest.dart b/tests/isolate/src/SerializationTest.dart |
index 9f8de80f3bce6768b11d6d64bb5bf6a74d83ef53..61062fa6e7016ed575fa43c836bc90a9040de3bb 100644 |
--- a/tests/isolate/src/SerializationTest.dart |
+++ b/tests/isolate/src/SerializationTest.dart |
@@ -36,13 +36,7 @@ void testAllTypes(Function f) { |
copyAndVerify([ { 'a': 499 }, { 'b': 42 } ], f); |
var port = new ReceivePort(); |
- var transformed = f(port); |
- Expect.equals(port.toSendPort(), transformed); |
- port.close(); |
- |
- port = new ReceivePort.singleShot(); |
- transformed = f(port); |
- Expect.equals(port.toSendPort(), transformed); |
+ Expect.throws(() => f(port)); |
port.close(); |
var a = [ 1, 3, 5 ]; |