Skip to content

Commit

Permalink
Await tearDown
Browse files Browse the repository at this point in the history
  • Loading branch information
passsy committed Mar 5, 2024
1 parent 67e59d5 commit 7e0efd4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/test/install_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,11 @@ Future<void> allowCloneFromFile() async {
await run('git config --global protocol.file.allow always');

// always restore to previous value
addTearDown(() {
addTearDown(() async {
if (allowValue == null) {
run('git config --global --unset protocol.file.allow');
await run('git config --global --unset protocol.file.allow');
} else {
run('git config --global protocol.file.allow $allowValue');
await run('git config --global protocol.file.allow $allowValue');
}
});
}
Expand Down

0 comments on commit 7e0efd4

Please sign in to comment.