Fix test clause - dir does not exist

This commit is contained in:
Paul Campbell 2018-06-01 07:09:48 +01:00
parent 7d5b7e314c
commit 51dcf05c5d

View file

@ -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