Skip to content

Commit d45ce97

Browse files
authored
Fix AbortPolicyWithReportTest as con could be used as a directory name in Windows server 2025 (#15672)
1 parent 605836f commit d45ce97

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dubbo-common/src/test/java/org/apache/dubbo/common/threadpool/support/AbortPolicyWithReportTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,9 @@ private String dumpDirectoryCannotBeCreated() {
156156
final String os =
157157
SystemPropertyConfigUtils.getSystemProperty(SYSTEM_OS_NAME).toLowerCase();
158158
if (os.contains(OS_WIN_PREFIX)) {
159-
// "con" is one of Windows reserved names,
159+
// colon is a reserved character which could not be used in a file or directory name,
160160
// https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file
161-
return "con";
161+
return "c:o:n";
162162
} else {
163163
return "/dev/full/" + UUID.randomUUID().toString();
164164
}

0 commit comments

Comments
 (0)