Index: utils/tests/pub/test_pub.dart |
diff --git a/utils/tests/pub/test_pub.dart b/utils/tests/pub/test_pub.dart |
index ddac2322e53425df15f7d2720bd284eeb36c1c23..d4ad613b40edf5f0e07e282bed57aabf8001d256 100644 |
--- a/utils/tests/pub/test_pub.dart |
+++ b/utils/tests/pub/test_pub.dart |
@@ -111,7 +111,7 @@ Future<ProcessResult> _runPub(List<String> pubArgs, String workingDir) { |
// Find a dart executable we can use to run pub. Uses the one that the |
// test infrastructure uses. |
final scriptDir = new File(new Options().script).directorySync().path; |
- final platform = Platform.operatingSystem(); |
+ final platform = Platform.operatingSystem; |
final dartBin = join(scriptDir, '../../../tools/testing/bin/$platform/dart'); |
// Find the main pub entrypoint. |