@@ -179,11 +179,11 @@ class TestProject {
179
179
if (copiedPackageDirectories.contains (packageDirectory)) return ;
180
180
final currentPath = absolutePath (pathFromFixtures: packageDirectory);
181
181
final newPath = p.join (tempDirectory.absolute.path, packageDirectory);
182
- await Directory (newPath).create ();
183
- await copyPath (currentPath, newPath);
182
+ Directory (newPath).createSync ();
183
+ copyPathSync (currentPath, newPath);
184
184
copiedPackageDirectories.add (packageDirectory);
185
185
final pubspec = Pubspec .parse (
186
- await File (p.join (currentPath, 'pubspec.yaml' )).readAsString (),
186
+ File (p.join (currentPath, 'pubspec.yaml' )).readAsStringSync (),
187
187
);
188
188
for (final dependency in pubspec.dependencies.values) {
189
189
if (dependency is PathDependency ) {
@@ -225,9 +225,9 @@ class TestProject {
225
225
final systemTempDir = Directory (
226
226
// Resolve symbolic links as build_daemon tests rely on paths matching
227
227
// between the client and the daemon.
228
- await Directory .systemTemp.resolveSymbolicLinks (),
228
+ Directory .systemTemp.resolveSymbolicLinksSync (),
229
229
);
230
- _fixturesCopy = await systemTempDir.createTemp ();
230
+ _fixturesCopy = systemTempDir.createTempSync ();
231
231
await _copyPackageAndPathDependenciesIntoTempDirectory (
232
232
_fixturesCopy,
233
233
packageDirectory,
@@ -238,12 +238,12 @@ class TestProject {
238
238
/// Delete the copy of the project.
239
239
Future <void > tearDown () async {
240
240
try {
241
- await _fixturesCopy.delete (recursive: true );
241
+ _fixturesCopy.deleteSync (recursive: true );
242
242
} on FileSystemException catch (_) {
243
243
// On Windows, the build daemon process might still be accessing the
244
244
// working directory, so wait a second and then try again.
245
245
await Future .delayed (const Duration (seconds: 1 ));
246
- await _fixturesCopy.delete (recursive: true );
246
+ _fixturesCopy.deleteSync (recursive: true );
247
247
}
248
248
}
249
249
0 commit comments