Fix test clause - dir does not exist
This commit is contained in:
parent
7d5b7e314c
commit
51dcf05c5d
1 changed files with 3 additions and 1 deletions
|
@ -47,7 +47,9 @@ class GitDBTest {
|
|||
}
|
||||
|
||||
private Path dirDoesNotExist() throws IOException {
|
||||
return Files.createTempDirectory("gitdb");
|
||||
final Path directory = Files.createTempDirectory("gitdb");
|
||||
Files.delete(directory);
|
||||
return directory;
|
||||
}
|
||||
|
||||
// When initialising a repo in a dir that is a file then an exception is thrown
|
||||
|
|
Loading…
Reference in a new issue