Skip to content

Commit bb2e3b6

Browse files
authored
Sort output to avoid relying on the undefined order of directory content (#57)
1 parent 4ee8b3a commit bb2e3b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/SwiftDocCUtilitiesTests/StaticHostableTransformerTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class StaticHostableTransformerTests: StaticHostingBaseTests {
7777

7878
// Test the content of the output folder.
7979
let expectedContent = ["documentation", "tutorials"]
80-
let output = try fileManager.contentsOfDirectory(atPath: outputURL.path)
80+
let output = try fileManager.contentsOfDirectory(atPath: outputURL.path).sorted()
8181

8282
XCTAssertEqual(output, expectedContent, "Unexpected output")
8383
for item in output {

0 commit comments

Comments
 (0)