Skip to content

Commit

Permalink
Increase timeouts to reduce flakiness
Browse files Browse the repository at this point in the history
  • Loading branch information
prashantv committed Mar 1, 2016
1 parent ea131a8 commit cd63cde
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions connection_test.go
Expand Up @@ -417,7 +417,7 @@ func TestFragmentationSlowReader(t *testing.T) {
arg2 := testutils.RandBytes(MaxFramePayloadSize * MexChannelBufferSize)
arg3 := testutils.RandBytes(MaxFramePayloadSize * (MexChannelBufferSize + 1))

ctx, cancel := NewContext(testutils.Timeout(15 * time.Millisecond))
ctx, cancel := NewContext(testutils.Timeout(30 * time.Millisecond))
defer cancel()

_, _, _, err := raw.Call(ctx, ch, hostPort, testServiceName, "echo", arg2, arg3)
Expand All @@ -426,7 +426,7 @@ func TestFragmentationSlowReader(t *testing.T) {
close(startReading)
select {
case <-handlerComplete:
case <-time.After(testutils.Timeout(50 * time.Millisecond)):
case <-time.After(testutils.Timeout(70 * time.Millisecond)):
t.Errorf("Handler not called, context timeout may be too low")
}
})
Expand Down
2 changes: 1 addition & 1 deletion verify_utils_test.go
Expand Up @@ -34,7 +34,7 @@ func waitForChannelClose(t *testing.T, ch *Channel) bool {
started := time.Now()

var state ChannelState
for i := 0; i < 20; i++ {
for i := 0; i < 50; i++ {
if state = ch.State(); state == ChannelClosed {
return true
}
Expand Down

0 comments on commit cd63cde

Please sign in to comment.