From 57e3a6ab057336dd87a388891368dfab829c3c0e Mon Sep 17 00:00:00 2001 From: Juri Pakaste Date: Sat, 11 May 2024 17:04:01 +0300 Subject: [PATCH] Try to make tests work on Linux --- Tests/DotEnvyTests/LoadTests.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Tests/DotEnvyTests/LoadTests.swift b/Tests/DotEnvyTests/LoadTests.swift index 2f9942e..793bbcb 100644 --- a/Tests/DotEnvyTests/LoadTests.swift +++ b/Tests/DotEnvyTests/LoadTests.swift @@ -94,9 +94,9 @@ final class LoadTests: XCTestCase { private func inTemporaryDirectory(_ closure: (URL) throws -> Void) throws { let url = URL( - filePath: UUID().uuidString, - directoryHint: .isDirectory, - relativeTo: URL(filePath: NSTemporaryDirectory(), directoryHint: .isDirectory) + fileURLWithPath: UUID().uuidString, + isDirectory: true, + relativeTo: URL(fileURLWithPath: NSTemporaryDirectory(), isDirectory: true) ).absoluteURL try FileManager.default.createDirectory(at: url, withIntermediateDirectories: true) defer {