Skip to content

Commit

Permalink
Addressed comments
Browse files Browse the repository at this point in the history
  • Loading branch information
dorianperkins committed Nov 29, 2016
1 parent f004114 commit b99a942
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dial_17_test.go
Expand Up @@ -60,6 +60,6 @@ func TestNetDialCancelContext(t *testing.T) {
}

d := time.Since(started)
assert.Equal(t, ErrCodeCancelled, GetSystemErrorCode(err), "Ping expected to fail with timeout")
assert.True(t, d <= 2*timeoutPeriod, "Timeout should take less than %v, took %v", timeoutPeriod, d)
assert.Equal(t, ErrCodeCancelled, GetSystemErrorCode(err), "Ping expected to fail with context cancelled")
assert.True(t, d < 2*timeoutPeriod, "Timeout should take less than %v, took %v", 2*timeoutPeriod, d)
}

0 comments on commit b99a942

Please sign in to comment.