Skip to content

Commit 9e966b5

Browse files
author
Zhen
committed
Fix the bug that windows cert file is not deleted
1 parent 5ecb395 commit 9e966b5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

driver/src/test/java/org/neo4j/driver/internal/ConfigTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import java.io.File;
2424

2525
import org.neo4j.driver.v1.Config;
26+
import org.neo4j.driver.v1.util.FileTools;
2627

2728
import static java.lang.System.getProperty;
2829
import static org.hamcrest.CoreMatchers.equalTo;
@@ -92,7 +93,7 @@ public static void deleteDefaultKnownCertFileIfExists()
9293
{
9394
if( DEFAULT_KNOWN_HOSTS.exists() )
9495
{
95-
DEFAULT_KNOWN_HOSTS.delete();
96+
FileTools.deleteFile( DEFAULT_KNOWN_HOSTS );
9697
}
9798
}
9899

0 commit comments

Comments
 (0)