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

Unified Diff: runtime/observatory/tests/service/capture_stdio_test.dart

Issue 1237893002: Fix problem when running new test in checked mode. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/observatory/tests/service/capture_stdio_test.dart
diff --git a/runtime/observatory/tests/service/capture_stdio_test.dart b/runtime/observatory/tests/service/capture_stdio_test.dart
index d131a7fe75bee019134fc83ae9b69dcad42a3348..b9673cf26b300a4c3e16672f8f85e1cfe1b3698c 100644
--- a/runtime/observatory/tests/service/capture_stdio_test.dart
+++ b/runtime/observatory/tests/service/capture_stdio_test.dart
@@ -32,7 +32,7 @@ var tests = [
(ServiceEvent event) {
expect(event.kind, equals('WriteEvent'));
expect(event.bytesAsString, equals('stdout'));
- cancelFutureSubscription(stdoutSub).then((_) {
+ stdoutSub.cancel().then((_) {
completer.complete();
});
});
@@ -54,7 +54,7 @@ var tests = [
expect(event.bytesAsString, equals('print'));
} else if (eventNumber == 2) {
expect(event.bytesAsString, equals('\n'));
- cancelFutureSubscription(stdoutSub).then((_) {
+ stdoutSub.cancel().then((_) {
completer.complete();
});
} else {
@@ -76,7 +76,7 @@ var tests = [
(ServiceEvent event) {
expect(event.kind, equals('WriteEvent'));
expect(event.bytesAsString, equals('stderr'));
- cancelFutureSubscription(stderrSub).then((_) {
+ stderrSub.cancel().then((_) {
completer.complete();
});
});
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698