Index: utils/tests/pub/test_pub.dart |
diff --git a/utils/tests/pub/test_pub.dart b/utils/tests/pub/test_pub.dart |
index ec4d827cf8b9663c233812195712ce136da9db33..03f04164e804901443dfa727ac534aa1e80e947e 100644 |
--- a/utils/tests/pub/test_pub.dart |
+++ b/utils/tests/pub/test_pub.dart |
@@ -351,7 +351,7 @@ ScheduledProcess startPub({List args, Future<Uri> tokenEndpoint}) { |
var options = new ProcessOptions(); |
options.workingDirectory = pathInSandbox(appPath); |
// TODO(nweiz): remove this when issue 9294 is fixed. |
- options.environment = new Map(Platform.environment); |
+ options.environment = new Map.from(Platform.environment); |
options.environment['PUB_CACHE'] = pathInSandbox(cachePath); |
options.environment['DART_SDK'] = pathInSandbox(sdkPath); |
if (tokenEndpoint != null) { |