Skip to content
This repository has been archived by the owner on Mar 5, 2024. It is now read-only.

Commit

Permalink
Merge pull request #68 from stripe/fix-travis
Browse files Browse the repository at this point in the history
Increase sleep times in proxy tests
  • Loading branch information
scottjab authored Nov 29, 2016
2 parents 56f0a72 + 890c6ac commit eaf6f9c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions proxy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ var proxyTestVersion = &version{
sequins: &sequins{
config: sequinsConfig{
Sharding: shardingConfig{
ProxyTimeout: duration{30 * time.Millisecond},
ProxyStageTimeout: duration{10 * time.Millisecond},
ProxyTimeout: duration{300 * time.Millisecond},
ProxyStageTimeout: duration{100 * time.Millisecond},
},
},
},
Expand Down Expand Up @@ -55,7 +55,7 @@ func TestProxySinglePeer(t *testing.T) {

func TestProxySlowPeer(t *testing.T) {
slowPeer := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
time.Sleep(100 * time.Millisecond)
time.Sleep(1 * time.Second)
fmt.Fprintln(w, "sorry, did you need something?")
}))

Expand Down Expand Up @@ -103,7 +103,7 @@ func TestProxyErrorPeer(t *testing.T) {

func TestProxySlowPeerErrorPeer(t *testing.T) {
slowPeer := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
time.Sleep(15 * time.Millisecond)
time.Sleep(150 * time.Millisecond)
fmt.Fprintln(w, "all good, sorry to keep you waiting")
}))

Expand All @@ -124,7 +124,7 @@ func TestProxySlowPeerErrorPeer(t *testing.T) {

func TestProxyTimeout(t *testing.T) {
slowPeer := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
time.Sleep(100 * time.Millisecond)
time.Sleep(1 * time.Second)
fmt.Fprintln(w, "sorry, did you need something?")
}))

Expand Down

0 comments on commit eaf6f9c

Please sign in to comment.