Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zunda-pixel committed Jul 14, 2024
1 parent 596c9ec commit d1e4b48
Showing 1 changed file with 1 addition and 22 deletions.
23 changes: 1 addition & 22 deletions Tests/AuthTests/AuthTests.swift
Original file line number Diff line number Diff line change
@@ -1,34 +1,13 @@
import Auth
import Foundation
import Testing
import HTTPClient
import HTTPTypes
import Testing

#if canImport(FoundationNetworking)
import FoundationNetworking
#endif

extension URLSession: @retroactive @unchecked Sendable {}

extension URLSession: HTTPClientProtocol {
public func execute(
for request: HTTPRequest,
from body: Data?
) async throws -> (Data, HTTPResponse) {
if let body {
try await self.upload(for: request, from: body)
} else {
try await self.data(for: request)
}
}
}

extension HTTPClientProtocol where Self == URLSession {
public static func urlSession(_ urlSession: Self) -> Self {
return urlSession
}
}

extension Tag {
@Tag static var emailRequired: Self
}
Expand Down

0 comments on commit d1e4b48

Please sign in to comment.