commit | 2736dab879cdab4b038948c3188731679bb2a4ad | [log] [tgz] |
---|---|---|
author | asiva <asiva@google.com> | Thu May 09 23:04:28 2019 +0000 |
committer | commit-bot@chromium.org <commit-bot@chromium.org> | Thu May 09 23:04:28 2019 +0000 |
tree | f9d0aebfe8107f867035cdcc139c2f9c98b452f2 | |
parent | 869cb683d88412bdf67083b511c9969eb8daac47 [diff] |
[VM/tests] Use appropriate type when invoking Isolate.spawn Fixes https://github.com/dart-lang/sdk/issues/36917 Change-Id: I83ae6ad6afefb62da4228d168bbec805aa74cf92 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/102101 Commit-Queue: Siva Annamalai <asiva@google.com> Reviewed-by: Matthew Dempsky <mdempsky@google.com> Reviewed-by: Zach Anderson <zra@google.com>
diff --git a/runtime/tests/vm/dart/spawn_shutdown_test.dart b/runtime/tests/vm/dart/spawn_shutdown_test.dart index 235a0d8..6e42f3e 100644 --- a/runtime/tests/vm/dart/spawn_shutdown_test.dart +++ b/runtime/tests/vm/dart/spawn_shutdown_test.dart
@@ -1,6 +1,7 @@ // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// VMOptions=--enable-asserts import 'dart:async'; import 'dart:io'; @@ -16,7 +17,7 @@ trySpawn(Function f, Object o) async { try { - await Isolate.spawn(f, o); + await Isolate.spawn<SendPort>(f, o); } catch (e) { // Isolate spawning may fail if the program is ending. assert(e is IsolateSpawnException);