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

Unified Diff: test/discovery_test.dart

Issue 2857383002: Fix write to sink after close in test code. (Closed)
Patch Set: Created 3 years, 7 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 | « pubspec.yaml ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/discovery_test.dart
diff --git a/test/discovery_test.dart b/test/discovery_test.dart
index 8807ac497e41a307ae0e2da7630d3594849653b8..897063f52726e5b5f0c88f0417d3d681c5b46c47 100644
--- a/test/discovery_test.dart
+++ b/test/discovery_test.dart
@@ -290,6 +290,7 @@ void httpTest(String name, Map description, Future httpTest(Uri directory)) {
if (fileOrDir == null) {
request.response.statusCode = 404;
request.response.close();
+ return;
}
}
request.response.write(fileOrDir);
« no previous file with comments | « pubspec.yaml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698