Skip to content

Commit 3e992c1

Browse files
committed
check results of mkdirs()/delete()
1 parent d5062ef commit 3e992c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

opengrok-web/src/test/java/org/opengrok/web/PageConfigTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -598,8 +598,8 @@ void testCheckSourceRootExistence5() throws IOException {
598598
PageConfig cfg = PageConfig.get(req);
599599
String path = RuntimeEnvironment.getInstance().getSourceRootPath();
600600
File temp = File.createTempFile("opengrok", "-test-file.tmp");
601-
temp.delete();
602-
temp.mkdirs();
601+
assertTrue(temp.delete());
602+
assertTrue(temp.mkdirs());
603603
RuntimeEnvironment.getInstance().setSourceRoot(temp.getAbsolutePath());
604604
cfg.checkSourceRootExistence();
605605
RuntimeEnvironment.getInstance().setSourceRoot(path);

0 commit comments

Comments
 (0)