Skip to content

Commit 26d6145

Browse files
powaznykcooney
authored andcommitted
Fix TemporaryFolderUsageTest on Windows (#1428)
Fix newFolderWithPathStartingWithFileSeparatorThrowsIOException Test run on Windows OS
1 parent 6838ac0 commit 26d6145

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/java/org/junit/rules/TemporaryFolderUsageTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public void newFolderWithPathStartingWithFileSeparatorThrowsIOException()
106106
}
107107
tempFolder.create();
108108
thrown.expect(IOException.class);
109-
thrown.expectMessage("folder path '/temp1' is not a relative path");
109+
thrown.expectMessage("folder path '" + fileAtRoot + "' is not a relative path");
110110
tempFolder.newFolder(fileAtRoot);
111111
}
112112

0 commit comments

Comments
 (0)