Skip to content

Commit

Permalink
fix: make test use proper error type
Browse files Browse the repository at this point in the history
  • Loading branch information
cmgriffing committed May 3, 2024
1 parent 85ad3c5 commit 4073536
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ final class VexillaClientTests: XCTestCase {
return try await withCheckedThrowingContinuation { continuation in
URLSession.shared.dataTask(with: request) { data, _, error in
if error != nil {
return continuation.resume(throwing: "could not fetch manifest")
return continuation.resume(throwing: VexillaClientError.couldNotConstructUrl)
}
return continuation.resume(returning: data ?? Data())
}.resume()
Expand Down

0 comments on commit 4073536

Please sign in to comment.