Index: tests/standalone/io/process_working_directory_test.dart |
diff --git a/tests/standalone/io/process_working_directory_test.dart b/tests/standalone/io/process_working_directory_test.dart |
index b5fe0ee88adc11e030df56074e3c23fe3d336146..3240cb95ec294ff67647cc129fc500c6998a85da 100644 |
--- a/tests/standalone/io/process_working_directory_test.dart |
+++ b/tests/standalone/io/process_working_directory_test.dart |
@@ -31,8 +31,7 @@ class ProcessWorkingDirectoryTest { |
}; |
process.stdout.onData = process.stdout.read; |
process.stderr.onData = process.stderr.read; |
- }); |
- processFuture.handleException((error) { |
+ }).catchError((error) { |
directory.deleteSync(); |
Expect.fail("Couldn't start process"); |
}); |
@@ -50,12 +49,9 @@ class ProcessWorkingDirectoryTest { |
future.then((process) { |
Expect.fail("bad process completed"); |
directory.deleteSync(); |
- }); |
- |
- future.handleException((e) { |
+ }).catchError((e) { |
Expect.isNotNull(e); |
directory.deleteSync(); |
- return true; |
}); |
} |
} |