Skip to content

Commit

Permalink
Use setup to ensure each test is sandboxed (#2381)
Browse files Browse the repository at this point in the history
  • Loading branch information
grouma authored Jul 25, 2019
1 parent 68e7bca commit 926ac3b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions build_runner/test/daemon/daemon_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ main() {
String workspace() => p.join(d.sandbox, 'a');
final webTarget = DefaultBuildTarget((b) => b..target = 'web');
final testTarget = DefaultBuildTarget((b) => b..target = 'test');
setUpAll(() async {
setUp(() async {
await d.dir('a', [
await pubspec(
'a',
Expand Down Expand Up @@ -65,7 +65,6 @@ main() {
stdoutLines = null;
daemonProcess?.kill(ProcessSignal.sigkill);
await daemonProcess?.exitCode;
await runPub('a', 'run', args: ['build_runner', 'clean']);
});

Future<BuildDaemonClient> _startClient(
Expand Down

0 comments on commit 926ac3b

Please sign in to comment.