File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -322,10 +322,12 @@ class TestContext {
322
322
_webRunner = ResidentWebRunner (
323
323
mainUri: entry,
324
324
urlTunneler: debugSettings.urlEncoder,
325
- projectDirectory: p. toUri (project.absolutePackageDirectory),
325
+ projectDirectory: Directory (project.absolutePackageDirectory).uri ,
326
326
packageConfigFile: project.packageConfigFile,
327
327
packageUriMapper: packageUriMapper,
328
- fileSystemRoots: [p.toUri (project.absolutePackageDirectory)],
328
+ fileSystemRoots: [
329
+ Directory (project.absolutePackageDirectory).uri,
330
+ ],
329
331
fileSystemScheme: 'org-dartlang-app' ,
330
332
outputPath: outputDir.path,
331
333
compilerOptions: compilerOptions,
Original file line number Diff line number Diff line change @@ -22,12 +22,9 @@ class TestProject {
22
22
late Directory _fixturesCopy;
23
23
24
24
/// The top level directory in which we run the test server, e.g.
25
- /// "/tmp/_testSound/ ".
25
+ /// "/tmp/_testSound".
26
26
String get absolutePackageDirectory =>
27
- // Return it as a directory with a trailing slash.
28
- Directory .fromUri (
29
- _fixturesCopy.absolute.uri.resolve (packageDirectory),
30
- ).uri.path;
27
+ _fixturesCopy.absolute.uri.resolve (packageDirectory).path;
31
28
32
29
/// The directory to build and serve, e.g. "example".
33
30
String get directoryToServe => p.split (webAssetsPath).first;
@@ -243,7 +240,6 @@ class TestProject {
243
240
try {
244
241
_fixturesCopy.deleteSync (recursive: true );
245
242
} on FileSystemException catch (_) {
246
- assert (Platform .isWindows);
247
243
// On Windows, the build daemon process might still be accessing the
248
244
// working directory, so try again with an exponential backoff.
249
245
var seconds = 1 ;
You can’t perform that action at this time.
0 commit comments