Index: sdk/lib/_internal/pub/test/lish/upload_form_fields_has_a_non_string_value_test.dart |
diff --git a/sdk/lib/_internal/pub/test/lish/upload_form_fields_has_a_non_string_value_test.dart b/sdk/lib/_internal/pub/test/lish/upload_form_fields_has_a_non_string_value_test.dart |
index e1143d6b9c21236cf70076287e69fa66173d9b0b..9e2471513441463be7f318fd54ef7960ce1ae658 100644 |
--- a/sdk/lib/_internal/pub/test/lish/upload_form_fields_has_a_non_string_value_test.dart |
+++ b/sdk/lib/_internal/pub/test/lish/upload_form_fields_has_a_non_string_value_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() { |
}; |
handleUploadForm(server, body); |
expect(pub.nextErrLine(), completion(equals('Invalid server response:'))); |
- expect(pub.nextErrLine(), completion(equals(json.stringify(body)))); |
+ expect(pub.nextErrLine(), completion(equals(JSON.encode(body)))); |
pub.shouldExit(1); |
}); |
} |