Index: tests/standalone/io/process_check_arguments_test.dart |
diff --git a/tests/standalone/io/process_check_arguments_test.dart b/tests/standalone/io/process_check_arguments_test.dart |
index 23ee444470b02531abaee3baf991701c4f4caadb..46b1cb418444ba7f3f43fea60f8edca98a6962fb 100644 |
--- a/tests/standalone/io/process_check_arguments_test.dart |
+++ b/tests/standalone/io/process_check_arguments_test.dart |
@@ -8,12 +8,12 @@ import "process_test_util.dart"; |
test(args) { |
var future = Process.start(new Options().executable, args); |
future.then((process) { |
- process.onExit = (exitCode) { |
+ process.exitCode.then((exitCode) { |
Expect.equals(0, exitCode); |
- }; |
+ }); |
// Drain stdout and stderr. |
- process.stdout.onData = process.stdout.read; |
- process.stderr.onData = process.stderr.read; |
+ process.stdout.listen((_) {}); |
+ process.stderr.listen((_) {}); |
}); |
} |