Index: pkg/http_server/test/utils.dart |
diff --git a/pkg/http_server/test/utils.dart b/pkg/http_server/test/utils.dart |
index 498d159b8cdbf86ebb32671cd3e2a413d97d704f..6a46696cff4cbee8dc586181660fed24dc046889 100644 |
--- a/pkg/http_server/test/utils.dart |
+++ b/pkg/http_server/test/utils.dart |
@@ -6,7 +6,7 @@ library utils; |
import 'dart:async'; |
import 'dart:io'; |
- |
+import "package:path/path.dart"; |
Future<int> getStatusCode(int port, |
String path, |
@@ -57,8 +57,8 @@ const CERTIFICATE = "localhost_cert"; |
setupSecure() { |
- Path scriptDir = new Path(new Options().script).directoryPath; |
- Path certificateDatabase = scriptDir.append('pkcert'); |
- SecureSocket.initialize(database: certificateDatabase.toNativePath(), |
+ String scriptDir = dirname(new Options().script); |
+ String certificateDatabase = join(scriptDir, 'pkcert'); |
+ SecureSocket.initialize(database: certificateDatabase, |
password: 'dartdart'); |
} |