Skip to content

Commit 6db3e63

Browse files
powaznykcooney
authored andcommitted
Fix TemporaryFolderUsageTest on Windows (junit-team#1428)
Fix newFolderWithPathStartingWithFileSeparatorThrowsIOException Test run on Windows OS
1 parent 4eb80fa commit 6db3e63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
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)