Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kylebrowning committed Jul 27, 2019
1 parent 30538eb commit e4fc0d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tests/APNSwiftTests/APNSwiftRequestTests.swift
Expand Up @@ -189,7 +189,8 @@ final class APNSwiftRequestTests: XCTestCase {
signer: signer,
topic: "com.grasscove.Fern",
environment: .sandbox)
let channel = EmbeddedChannel(handler: APNSwiftRequestEncoder<BasicNotification>(deviceToken: deviceToken, configuration: apnsConfig, expiration: nil, priority: nil, collapseIdentifier: nil))
let token = APNSwiftBearerToken(configuration: apnsConfig, timeout: 50.0)
let channel = EmbeddedChannel(handler: APNSwiftRequestEncoder<BasicNotification>(deviceToken: deviceToken, configuration: apnsConfig, bearerToken: token, expiration: nil, priority: nil, collapseIdentifier: nil))

// pretend to connect the connect (nothing real will happen)
XCTAssertNoThrow(try channel.connect(to: .init(ipAddress: "1.2.3.4", port: 5)).wait())
Expand Down Expand Up @@ -233,7 +234,6 @@ final class APNSwiftRequestTests: XCTestCase {
XCTFail("response should not success")
}
}

}


Expand Down

0 comments on commit e4fc0d7

Please sign in to comment.