Index: tests/isolate/issue_21398_parent_isolate2_test.dart |
diff --git a/tests/isolate/issue_21398_parent_isolate2_test.dart b/tests/isolate/issue_21398_parent_isolate2_test.dart |
index f67ae10b88c13927ebc3a76a00694d6de2cb114e..27d49b9856d48de5f274c0279e31a58979d266dd 100644 |
--- a/tests/isolate/issue_21398_parent_isolate2_test.dart |
+++ b/tests/isolate/issue_21398_parent_isolate2_test.dart |
@@ -31,25 +31,20 @@ void helperFunction() { |
asyncStart(); |
// Spawn an isolate using spawnFunction. |
- Isolate.spawn(funcChild, [receivePort.sendPort]).then( |
- (isolate) { |
- receivePort.listen( |
- (msg) { |
- // We don't expect to receive any valid messages. |
- Expect.fail("We don't expect to receive any valid messages"); |
- receivePort.close(); |
- asyncEnd(); |
- }, |
- onError: (e) { |
- // We don't expect to receive any error messages, per spec listen |
- // does not receive an error object. |
- Expect.fail("We don't expect to receive any error messages"); |
- receivePort.close(); |
- asyncEnd(); |
- } |
- ); |
- } |
- ); |
+ Isolate.spawn(funcChild, [receivePort.sendPort]).then((isolate) { |
+ receivePort.listen((msg) { |
+ // We don't expect to receive any valid messages. |
+ Expect.fail("We don't expect to receive any valid messages"); |
+ receivePort.close(); |
+ asyncEnd(); |
+ }, onError: (e) { |
+ // We don't expect to receive any error messages, per spec listen |
+ // does not receive an error object. |
+ Expect.fail("We don't expect to receive any error messages"); |
+ receivePort.close(); |
+ asyncEnd(); |
+ }); |
+ }); |
} |
main() { |