Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(115)

Unified Diff: tests/isolate/illegal_msg_mirror_test.dart

Issue 218273002: Upgrading tests with unittest deprecations (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tests/isolate/illegal_msg_mirror_test.dart
diff --git a/tests/isolate/illegal_msg_mirror_test.dart b/tests/isolate/illegal_msg_mirror_test.dart
index dcf80a01d6d480bd0925efbbe3e22a3103bc1953..c739256996636acbcac2594e5e367a4ba6234a16 100644
--- a/tests/isolate/illegal_msg_mirror_test.dart
+++ b/tests/isolate/illegal_msg_mirror_test.dart
@@ -32,7 +32,7 @@ void main([args, port]) {
Future spawn = Isolate.spawn(echo, port.sendPort);
var caught_exception = false;
var stream = port.asBroadcastStream();
- stream.first.then(expectAsync1((snd) {
+ stream.first.then(expectAsync((snd) {
try {
snd.send(methodMirror);
} catch (e) {
@@ -42,7 +42,7 @@ void main([args, port]) {
if (caught_exception) {
port.close();
} else {
- stream.first.then(expectAsync1((msg) {
+ stream.first.then(expectAsync((msg) {
print("from worker ${msg}");
}));
}

Powered by Google App Engine
This is Rietveld 408576698