Index: pkg/http_server/test/virtual_directory_test.dart |
diff --git a/pkg/http_server/test/virtual_directory_test.dart b/pkg/http_server/test/virtual_directory_test.dart |
index 0136b62def67177b57fb5ef6d20291346a7e232f..4b59f2c29278c428a6dcebc3129881b383b6357b 100644 |
--- a/pkg/http_server/test/virtual_directory_test.dart |
+++ b/pkg/http_server/test/virtual_directory_test.dart |
@@ -5,8 +5,9 @@ |
import 'dart:async'; |
import 'dart:io'; |
-import "package:unittest/unittest.dart"; |
import "package:http_server/http_server.dart"; |
+import "package:path/path.dart"; |
+import "package:unittest/unittest.dart"; |
import 'utils.dart'; |
@@ -296,7 +297,7 @@ void main() { |
test('relative-parent-link', () { |
expect(HttpServer.bind('localhost', 0).then((server) { |
var dir = new Directory('').createTempSync(); |
- var name = new Path(dir.path).filename; |
+ var name = basename(dir.path); |
var file = new File('${dir.path}/file')..createSync(); |
var link = new Link('${dir.path}/dir3') |
..createSync('../$name/file'); |