Skip to content

Commit 57e3a6a

Browse files
committed
Try to make tests work on Linux
1 parent dc4f25d commit 57e3a6a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Tests/DotEnvyTests/LoadTests.swift

+3-3
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ final class LoadTests: XCTestCase {
9494

9595
private func inTemporaryDirectory(_ closure: (URL) throws -> Void) throws {
9696
let url = URL(
97-
filePath: UUID().uuidString,
98-
directoryHint: .isDirectory,
99-
relativeTo: URL(filePath: NSTemporaryDirectory(), directoryHint: .isDirectory)
97+
fileURLWithPath: UUID().uuidString,
98+
isDirectory: true,
99+
relativeTo: URL(fileURLWithPath: NSTemporaryDirectory(), isDirectory: true)
100100
).absoluteURL
101101
try FileManager.default.createDirectory(at: url, withIntermediateDirectories: true)
102102
defer {

0 commit comments

Comments
 (0)