Index: tests/standalone/io/https_bad_certificate_test.dart |
diff --git a/tests/standalone/io/https_bad_certificate_test.dart b/tests/standalone/io/https_bad_certificate_test.dart |
index e4f7dfb7078ecebf8836d0e3c55483d83f2adfa0..b98aa46371638d3b4415eea75a4fceaebc6d7dd6 100644 |
--- a/tests/standalone/io/https_bad_certificate_test.dart |
+++ b/tests/standalone/io/https_bad_certificate_test.dart |
@@ -14,7 +14,7 @@ const CERTIFICATE = "localhost_cert"; |
Future<SecureServerSocket> runServer() { |
SecureSocket.initialize( |
- database: Platform.script.resolve('pkcert').toFilePath(), |
+ database: join(dirname(Platform.script), 'pkcert'), |
password: 'dartdart'); |
return HttpServer.bindSecure( |
@@ -28,9 +28,9 @@ Future<SecureServerSocket> runServer() { |
} |
void main() { |
- var clientScript = Platform.script |
- .resolve('https_bad_certificate_client.dart') |
- .toFilePath(); |
+ var clientScript = |
+ join(dirname(Platform.script), 'https_bad_certificate_client.dart'); |
+ |
Future clientProcess(int port, String acceptCertificate) { |
return Process.run(Platform.executable, |
[clientScript, port.toString(), acceptCertificate]) |