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 4883fe537ee2f375aea4ca01e48d7af7f0d952ea..01916ef9fa8fad68a9722a4cdc3aaa369f3eb730 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 |
@@ -2,7 +2,7 @@ |
// for details. All rights reserved. Use of this source code is governed by a |
// BSD-style license that can be found in the LICENSE file. |
-import 'dart:json' as json; |
+import 'dart:convert'; |
import 'package:scheduled_test/scheduled_test.dart'; |
import 'package:scheduled_test/scheduled_server.dart'; |
@@ -28,7 +28,7 @@ main() { |
handleUpload(server); |
server.handle('GET', '/create', (request) { |
- request.response.write(json.stringify({ |
+ request.response.write(JSON.encode({ |
'success': {'message': 'Package test_pkg 1.0.0 uploaded!'} |
})); |
request.response.close(); |