Skip to content

Commit 89ec163

Browse files
committed
Fix build failures
1 parent b53be1e commit 89ec163

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

Tests/FoundationEssentialsTests/FileManager/FilePlayground.swift

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -144,18 +144,18 @@ struct FilePlayground {
144144

145145
func test(captureDelegateCalls: Bool = false, sourceLocation: SourceLocation = #_sourceLocation, _ tester: sending (FileManager) throws -> Void) async throws {
146146
let capturingDelegate = CapturingFileManagerDelegate()
147-
let fileManager = FileManager()
148147
let tempDir = String.temporaryDirectoryPath
149-
try directory.build(in: tempDir, using: fileManager)
150-
if captureDelegateCalls {
151-
// Add the delegate after the call to `build` to ensure that the builder doesn't mutate the delegate
152-
fileManager.delegate = capturingDelegate
153-
}
148+
try directory.build(in: tempDir, using: FileManager.default)
154149
let createdDir = tempDir.appendingPathComponent(directory.name)
155-
try await CurrentWorkingDirectoryActor.withCurrentWorkingDirectory(createdDir, fileManager: fileManager, sourceLocation: sourceLocation) {
150+
try await CurrentWorkingDirectoryActor.withCurrentWorkingDirectory(createdDir, sourceLocation: sourceLocation) {
151+
let fileManager = FileManager()
152+
if captureDelegateCalls {
153+
// Add the delegate after the call to `build` to ensure that the builder doesn't mutate the delegate
154+
fileManager.delegate = capturingDelegate
155+
}
156156
try tester(fileManager)
157157
}
158-
try fileManager.removeItem(atPath: createdDir)
158+
try FileManager.default.removeItem(atPath: createdDir)
159159
extendLifetime(capturingDelegate) // Ensure capturingDelegate lives beyond the tester body
160160
}
161161
}

Tests/FoundationEssentialsTests/StringTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1208,7 +1208,7 @@ private struct StringTests {
12081208
}
12091209

12101210
#if FOUNDATION_FRAMEWORK
1211-
@Test func extendedAttributeData() throws {
1211+
@Test func extendedAttributeEncodings() throws {
12121212
// XAttr is supported on some platforms, but not all. For now we just test this code on Darwin.
12131213
let encs : [String._Encoding] = [
12141214
.ascii,

0 commit comments

Comments
 (0)