Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(609)

Unified Diff: tests/standalone/io/http_client_stays_alive_test.dart

Issue 1334353002: - Add getters for the current packageRoot or packageMap. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Updated documentation comment. Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tests/standalone/io/http_client_stays_alive_test.dart
diff --git a/tests/standalone/io/http_client_stays_alive_test.dart b/tests/standalone/io/http_client_stays_alive_test.dart
index 64ced6e16352c93fe813a937d9624a722ebdb2fe..614e5b37e61aa49a740ade277670a2926cf026f0 100644
--- a/tests/standalone/io/http_client_stays_alive_test.dart
+++ b/tests/standalone/io/http_client_stays_alive_test.dart
@@ -19,7 +19,7 @@ const SECONDS = 4;
void runServerProcess() {
asyncStart();
- HttpServer.bind('127.0.0.1', 0).then((server) {
+ HttpServer.bind('127.0.0.1', 0).then((server) async {
var url = 'http://127.0.0.1:${server.port}/';
server.idleTimeout = const Duration(hours: 1);
@@ -29,7 +29,7 @@ void runServerProcess() {
});
var sw = new Stopwatch()..start();
- var arguments = ['--package-root=${Platform.packageRoot}',
+ var arguments = ['--package-root=${(await Platform.packageRoot).toFilePath()}',
Lasse Reichstein Nielsen 2015/09/22 09:48:25 Long line. .toFilePath() -> ?.toFilePath()
'${Platform.script}',
url];
Process.run(Platform.executable, arguments).then((res) {

Powered by Google App Engine
This is Rietveld 408576698