Skip to content

Commit

Permalink
Relax timeout for TestWriteAfterArg3Timeout (#625)
Browse files Browse the repository at this point in the history
  • Loading branch information
kriskowal authored and prashantv committed May 31, 2017
1 parent d096b5a commit fd887ee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions connection_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -563,15 +563,15 @@ func TestWriteArg3AfterTimeout(t *testing.T) {
}
ts.Register(HandlerFunc(handler), "call")

ctx, cancel := NewContext(testutils.Timeout(50 * time.Millisecond))
ctx, cancel := NewContext(testutils.Timeout(100 * time.Millisecond))
defer cancel()

_, _, _, err := raw.Call(ctx, ts.Server(), ts.HostPort(), ts.ServiceName(), "call", nil, nil)
assert.Equal(t, err, ErrTimeout, "Call should timeout")

// Wait for the write to complete, make sure there's no errors.
// Wait for the write to complete, make sure there are no errors.
select {
case <-time.After(testutils.Timeout(30 * time.Millisecond)):
case <-time.After(testutils.Timeout(60 * time.Millisecond)):
t.Errorf("Handler should have failed due to timeout")
case <-timedOut:
}
Expand Down

0 comments on commit fd887ee

Please sign in to comment.