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

Unified Diff: sdk/lib/_internal/pub/test/lish/package_validation_has_a_warning_and_continues_test.dart

Issue 216373004: Use shelf handlers in ScheduledServer. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: code review Created 6 years, 9 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
Index: sdk/lib/_internal/pub/test/lish/package_validation_has_a_warning_and_continues_test.dart
diff --git a/sdk/lib/_internal/pub/test/lish/package_validation_has_a_warning_and_continues_test.dart b/sdk/lib/_internal/pub/test/lish/package_validation_has_a_warning_and_continues_test.dart
index 6d4972f28988694cb7ac2067ddfcf579d5ea8399..13af22badf6b534a6236726d07de2e6b356823bc 100644
--- a/sdk/lib/_internal/pub/test/lish/package_validation_has_a_warning_and_continues_test.dart
+++ b/sdk/lib/_internal/pub/test/lish/package_validation_has_a_warning_and_continues_test.dart
@@ -7,6 +7,7 @@ import 'dart:convert';
import 'package:scheduled_test/scheduled_server.dart';
import 'package:scheduled_test/scheduled_stream.dart';
import 'package:scheduled_test/scheduled_test.dart';
+import 'package:shelf/shelf.dart' as shelf;
import '../../lib/src/exit_codes.dart' as exit_codes;
import '../descriptor.dart' as d;
@@ -30,10 +31,9 @@ main() {
handleUpload(server);
server.handle('GET', '/create', (request) {
- request.response.write(JSON.encode({
+ return new shelf.Response.ok(JSON.encode({
'success': {'message': 'Package test_pkg 1.0.0 uploaded!'}
}));
- request.response.close();
});
pub.shouldExit(exit_codes.SUCCESS);

Powered by Google App Engine
This is Rietveld 408576698