Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelreiswildlife committed Apr 2, 2024
1 parent e6b2f07 commit d3b1d00
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions pusher/apns_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,23 +104,23 @@ var _ = Describe("APNS Pusher", func() {
time.Sleep(50 * time.Millisecond)
})

It("should ignore failed handlers", func() {
It("should not ignore failed handlers", func() {
config.Set("apns.apps", "game,invalidgame")
config.Set("apns.certs.invalidgame.authKeyPath", "../tls/authkey_invalid.p8")
config.Set("apns.certs.invalidgame.keyID", "oiejowijefiowejf")
config.Set("apns.certs.invalidgame.teamID", "aoijeoijfiowejfoij")
config.Set("apns.certs.invalidgame.teamID", "com.invalidgame.test")

pusher, err := NewAPNSPusher(
isProduction,
config,
logger,
mockStatsDClient,
mockDB,
mockPushQueue,
)
Expect(err).NotTo(HaveOccurred())
Expect(pusher.MessageHandler).To(HaveLen(1))
Expect(func() {
_, _ = NewAPNSPusher(
isProduction,
config,
logger,
mockStatsDClient,
mockDB,
mockPushQueue,
)
}).To(Panic())
})
})

Expand Down

0 comments on commit d3b1d00

Please sign in to comment.