Skip to content

Commit

Permalink
remove client timeout for go 1.5.3 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
c3mb0 committed Oct 9, 2016
1 parent 0785fde commit a877f6a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,9 +249,10 @@ func TestEnablePinging(t *testing.T) {
client := apns.NewClient(certificate)
client.Host = server.URL
client.HTTPClient.Transport.(*http2.Transport).TLSClientConfig = transport.TLSClientConfig
client.HTTPClient = &http.Client{Transport: client.HTTPClient.Transport}
drop, ok := client.EnablePinging(true)
assert.Equal(t, true, ok)
var gotDropped int32 = 0
var gotDropped int32
go func() {
<-drop
atomic.StoreInt32(&gotDropped, 1)
Expand All @@ -277,9 +278,10 @@ func TestDisablePinging(t *testing.T) {
client := apns.NewClient(certificate)
client.Host = server.URL
client.HTTPClient.Transport.(*http2.Transport).TLSClientConfig = transport.TLSClientConfig
client.HTTPClient = &http.Client{Transport: client.HTTPClient.Transport}
drop, ok := client.EnablePinging(true)
assert.Equal(t, true, ok)
var gotDropped int32 = 0
var gotDropped int32
cleanUp := make(chan struct{})
go func() {
select {
Expand Down

0 comments on commit a877f6a

Please sign in to comment.