Try to fix failing tests on Windows

This commit is contained in:
Per Minborg
2020-09-02 20:25:59 +02:00
parent ce46857e02
commit 6b4b995219
@@ -25,9 +25,6 @@ public class FileLockUtilTest {
@Before
public void setUp() throws IOException {
// Do not run these test on Windows
doNotRunOnWindows();
canonicalFile = new File("file.lock").getCanonicalFile();
canonicalFile.delete();
canonicalFile.createNewFile();
@@ -37,7 +34,6 @@ public class FileLockUtilTest {
@After
public void cleanup() throws IOException {
doNotRunOnWindows();
fileChannel.close();
CanonicalRandomAccessFiles.release(canonicalFile);
}