Skip to content

Commit

Permalink
Update unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
olivaresf committed May 30, 2024
1 parent 7227492 commit 7a59155
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tests/PathConfigurationLoaderTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class PathConfigurationLoaderTests: XCTestCase {
wait(for: [expectation])

XCTAssertTrue(handlerCalled)
XCTAssertTrue(FileManager.default.fileExists(atPath: loader.configurationCacheURL.path))
XCTAssertTrue(FileManager.default.fileExists(atPath: loader.configurationCacheURL(for: serverURL).path))
}

private func stubRequest(for loader: PathConfigurationLoader) -> XCTestExpectation {
Expand All @@ -64,7 +64,7 @@ class PathConfigurationLoaderTests: XCTestCase {
return HTTPStubsResponse(jsonObject: json, statusCode: 200, headers: [:])
}

clearCache(loader.configurationCacheURL)
clearCache(loader.configurationCacheURL(for: serverURL))

return expectation(description: "Wait for configuration to load.")
}
Expand Down

0 comments on commit 7a59155

Please sign in to comment.