Skip to content

Commit 92f55bb

Browse files
committed
Fix Windows build failures
1 parent 28459f8 commit 92f55bb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Tests/FoundationEssentialsTests/FileManager/FileManagerTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,7 @@ private struct FileManagerTests {
774774
"foo"
775775
}
776776
"bar"
777-
}.test { fileManager in
777+
}.test { (fileManager) throws in
778778
#expect(try fileManager.subpathsOfDirectory(atPath: ".").sorted() == ["bar", "dir", "dir/foo"])
779779
#expect(fileManager.changeCurrentDirectoryPath("dir"))
780780
#expect(try fileManager.subpathsOfDirectory(atPath: ".") == ["foo"])

Tests/FoundationEssentialsTests/FileManager/FilePlayground.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,6 @@ struct FilePlayground {
156156
try tester(fileManager)
157157
}
158158
try fileManager.removeItem(atPath: createdDir)
159-
_fixLifetime(capturingDelegate) // Ensure capturingDelegate lives beyond the tester body
159+
extendLifetime(capturingDelegate) // Ensure capturingDelegate lives beyond the tester body
160160
}
161161
}

0 commit comments

Comments
 (0)