Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kylebrowning committed Aug 20, 2024
1 parent a0be13d commit 576a50c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions Sources/APNSURLSession/APNSUrlSessionClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ enum APNSUrlSessionClientError: Error {
}

public struct APNSURLSessionClient: APNSClientProtocol {

private let configuration: APNSURLSessionClientConfiguration

let encoder = JSONEncoder()
Expand Down Expand Up @@ -61,6 +62,10 @@ public struct APNSURLSessionClient: APNSClientProtocol {
return APNSResponse(apnsID: apnsID, apnsUniqueID: apnsUniqueID)
}
}

public func shutdown() async throws {
// no op
}
}

#endif
4 changes: 2 additions & 2 deletions Tests/APNSTests/APNSClientTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ import Crypto
import XCTest

final class APNSClientTests: XCTestCase {
func testShutdown() throws {
func testShutdown() async throws {
let client = self.makeClient()
try client.syncShutdown()
try await client.shutdown()
}

// MARK: - Helper methods
Expand Down

0 comments on commit 576a50c

Please sign in to comment.