Skip to content

Commit e4fc0d7

Browse files
committed
Fix tests
1 parent 30538eb commit e4fc0d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/APNSwiftTests/APNSwiftRequestTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,8 @@ final class APNSwiftRequestTests: XCTestCase {
189189
signer: signer,
190190
topic: "com.grasscove.Fern",
191191
environment: .sandbox)
192-
let channel = EmbeddedChannel(handler: APNSwiftRequestEncoder<BasicNotification>(deviceToken: deviceToken, configuration: apnsConfig, expiration: nil, priority: nil, collapseIdentifier: nil))
192+
let token = APNSwiftBearerToken(configuration: apnsConfig, timeout: 50.0)
193+
let channel = EmbeddedChannel(handler: APNSwiftRequestEncoder<BasicNotification>(deviceToken: deviceToken, configuration: apnsConfig, bearerToken: token, expiration: nil, priority: nil, collapseIdentifier: nil))
193194

194195
// pretend to connect the connect (nothing real will happen)
195196
XCTAssertNoThrow(try channel.connect(to: .init(ipAddress: "1.2.3.4", port: 5)).wait())
@@ -233,7 +234,6 @@ final class APNSwiftRequestTests: XCTestCase {
233234
XCTFail("response should not success")
234235
}
235236
}
236-
237237
}
238238

239239

0 commit comments

Comments
 (0)