Skip to content

Commit 21f8034

Browse files
Small Temp Dir Test Fix
1 parent f258d3a commit 21f8034

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

CodeEditTests/Utils/withTempDir.swift

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,7 @@ func withTempDir(_ test: (URL) throws -> Void) throws {
3030
}
3131

3232
private func createAndClearDir() throws -> URL {
33-
let tempDirURL = try FileManager.default.url(
34-
for: .developerApplicationDirectory,
35-
in: .userDomainMask,
36-
appropriateFor: nil,
37-
create: true
38-
)
33+
let tempDirURL = FileManager.default.temporaryDirectory
3934
.appending(path: "CodeEditTestDirectory", directoryHint: .isDirectory)
4035

4136
// If it exists, delete it before the test

0 commit comments

Comments
 (0)