Index: utils/tests/pub/test_pub.dart |
diff --git a/utils/tests/pub/test_pub.dart b/utils/tests/pub/test_pub.dart |
index 2dc9eff9c33ac6dcc9897a5356c20bc3518c3303..2c7ca98c13a4818a6d1f32f603e8cc00975f133f 100644 |
--- a/utils/tests/pub/test_pub.dart |
+++ b/utils/tests/pub/test_pub.dart |
@@ -638,14 +638,14 @@ Future _doPub(Function fn, sandboxDir, List<String> args, Uri tokenEndpoint) { |
// Find the main pub entrypoint. |
var pubPath = fs.joinPaths(testDirectory, '../../pub/pub.dart'); |
- var dartArgs = |
- ['--enable-type-checks', '--enable-asserts', pubPath, '--trace']; |
+ var dartArgs = ['--checked', pubPath, '--trace']; |
dartArgs.addAll(args); |
var environment = { |
'PUB_CACHE': pathInSandbox(cachePath), |
'DART_SDK': pathInSandbox(sdkPath) |
}; |
+ |
if (tokenEndpoint != null) { |
environment['_PUB_TEST_TOKEN_ENDPOINT'] = tokenEndpoint.toString(); |
} |