Skip to content

Commit d643ecf

Browse files
committed
Remove nonfunctional reserved-file check in a test
1 parent 2835556 commit d643ecf

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

Tests/TestingTests/AttachmentTests.swift

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -104,24 +104,16 @@ struct AttachmentTests {
104104

105105
#if os(Windows)
106106
static let maximumNameCount = Int(_MAX_FNAME)
107-
static let reservedNames: [String] = {
108-
// Return the list of COM ports that are NOT configured (and so will fail
109-
// to open for writing.)
110-
(0...9).lazy
111-
.map { "COM\($0)" }
112-
.filter { !PathFileExistsA($0) }
113-
}()
114107
#else
115108
static let maximumNameCount = Int(NAME_MAX)
116-
static let reservedNames: [String] = []
117109
#endif
118110

119111
@Test(arguments: [
120112
#"/\:"#,
121113
String(repeating: "a", count: maximumNameCount),
122114
String(repeating: "a", count: maximumNameCount + 1),
123115
String(repeating: "a", count: maximumNameCount + 2),
124-
] + reservedNames) func writeAttachmentWithBadName(name: String) throws {
116+
]) func writeAttachmentWithBadName(name: String) throws {
125117
let attachableValue = MySendableAttachable(string: "<!doctype html>")
126118
let attachment = Test.Attachment(attachableValue, named: name)
127119

0 commit comments

Comments
 (0)