aboutsummaryrefslogtreecommitdiffstats
path: root/vespajlib/src/test/java/com/yahoo/io
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2018-09-26 21:03:18 +0200
committerHenning Baldersheim <balder@yahoo-inc.com>2018-09-26 21:03:18 +0200
commit7d9f51e9a229ec67b68a37d7091cc69f1ed5add2 (patch)
treea626be2d6d97697fc303c867ba00c1b003d7ea3e /vespajlib/src/test/java/com/yahoo/io
parentef525252f8eadd7593aea702a984b086ff22d3bd (diff)
Just accept that the file being dropped does not exist. Also sync the file before the dropping it.
Diffstat (limited to 'vespajlib/src/test/java/com/yahoo/io')
-rw-r--r--vespajlib/src/test/java/com/yahoo/io/NativeIOTestCase.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/vespajlib/src/test/java/com/yahoo/io/NativeIOTestCase.java b/vespajlib/src/test/java/com/yahoo/io/NativeIOTestCase.java
index ecd38056a19..6018a195b6a 100644
--- a/vespajlib/src/test/java/com/yahoo/io/NativeIOTestCase.java
+++ b/vespajlib/src/test/java/com/yahoo/io/NativeIOTestCase.java
@@ -30,5 +30,6 @@ public class NativeIOTestCase {
nativeIO.dropFileFromCache(output.getFD());
nativeIO.dropFileFromCache(testFile);
testFile.delete();
+ nativeIO.dropFileFromCache(new File("file.that.does.not.exist"));
}
}