| Index: tests/standalone/io/process_environment_test.dart
|
| diff --git a/tests/standalone/io/process_environment_test.dart b/tests/standalone/io/process_environment_test.dart
|
| index 26d5f4b23efa137363aff9dec6daa165dbb5187d..1a2009ee24ea833fbb1da0b9eff3298df6be4675 100644
|
| --- a/tests/standalone/io/process_environment_test.dart
|
| +++ b/tests/standalone/io/process_environment_test.dart
|
| @@ -14,14 +14,10 @@ runEnvironmentProcess(Map environment, name, callback) {
|
| if (!new File(printEnv).existsSync()) {
|
| printEnv = '../$printEnv';
|
| }
|
| - var process = new Process.run(dartExecutable,
|
| - [printEnv, name],
|
| - options,
|
| - (exit, out, err) {
|
| - Expect.equals(0, exit);
|
| - callback(out);
|
| + Process.run(dartExecutable, [printEnv, name], options).then((result) {
|
| + Expect.equals(0, result.exitCode);
|
| + callback(result.stdout);
|
| });
|
| - process.onError = (e) => Expect.fail("Unexpected process start error: '$e'");
|
| }
|
|
|
| testEnvironment() {
|
|
|