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

Unified Diff: tests/isolate/request_reply_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/request_reply_test.dart
diff --git a/tests/isolate/request_reply_test.dart b/tests/isolate/request_reply_test.dart
index 713f7bb97376c7498c03f58a05226b38470b0d1e..caeba645af48449750c2c29a2f2893320da4f353 100644
--- a/tests/isolate/request_reply_test.dart
+++ b/tests/isolate/request_reply_test.dart
@@ -24,10 +24,10 @@ void main([args, port]) {
test("send", () {
ReceivePort init = new ReceivePort();
Isolate.spawn(entry, init.sendPort);
- init.first.then(expectAsync1((port) {
+ init.first.then(expectAsync((port) {
ReceivePort reply = new ReceivePort();
port.send([99, reply.sendPort]);
- reply.listen(expectAsync1((message) {
+ reply.listen(expectAsync((message) {
expect(message, 99 + 87);
reply.close();
}));

Powered by Google App Engine
This is Rietveld 408576698