Skip to content

Commit

Permalink
Fix dev enpoint tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sideshow committed Sep 7, 2019
1 parent 2461def commit 02508a2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,22 +58,22 @@ func (c *mockTransport) CloseIdleConnections() {

func TestClientDefaultHost(t *testing.T) {
client := apns.NewClient(mockCert())
assert.Equal(t, "https://api.development.push.apple.com", client.Host)
assert.Equal(t, "https://api.sandbox.push.apple.com", client.Host)
}

func TestTokenDefaultHost(t *testing.T) {
client := apns.NewTokenClient(mockToken()).Development()
assert.Equal(t, "https://api.development.push.apple.com", client.Host)
assert.Equal(t, "https://api.sandbox.push.apple.com", client.Host)
}

func TestClientDevelopmentHost(t *testing.T) {
client := apns.NewClient(mockCert()).Development()
assert.Equal(t, "https://api.development.push.apple.com", client.Host)
assert.Equal(t, "https://api.sandbox.push.apple.com", client.Host)
}

func TestTokenClientDevelopmentHost(t *testing.T) {
client := apns.NewTokenClient(mockToken()).Development()
assert.Equal(t, "https://api.development.push.apple.com", client.Host)
assert.Equal(t, "https://api.sandbox.push.apple.com", client.Host)
}

func TestClientProductionHost(t *testing.T) {
Expand Down

0 comments on commit 02508a2

Please sign in to comment.