Skip to content

Commit

Permalink
Bump timings up
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoPolo committed Jul 7, 2023
1 parent bf857cd commit 4dc78d7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions p2p/test/transport/deadline_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func TestReadWriteDeadlines(t *testing.T) {
_, err = s.Read(buf)
require.Error(t, err)
require.Contains(t, err.Error(), "deadline")
require.Less(t, time.Since(start), 100*time.Millisecond)
require.Less(t, time.Since(start), 1*time.Second)

if strings.Contains(tc.Name, "mplex") {
// FIXME: mplex stalls on close, so we reset so we don't spend an extra 5s waiting for nothing
Expand All @@ -62,7 +62,7 @@ func TestReadWriteDeadlines(t *testing.T) {
_, err = s.Write(sendBuf)
require.Error(t, err)
require.Contains(t, err.Error(), "deadline")
require.Less(t, time.Since(start), 100*time.Millisecond)
require.Less(t, time.Since(start), 1*time.Second)

if strings.Contains(tc.Name, "mplex") {
// FIXME: mplex stalls on close, so we reset so we don't spend an extra 5s waiting for nothing
Expand Down Expand Up @@ -90,7 +90,7 @@ func TestReadWriteDeadlines(t *testing.T) {
}
require.Error(t, err)
require.Contains(t, err.Error(), "deadline")
require.Less(t, time.Since(start), 100*time.Millisecond)
require.Less(t, time.Since(start), 1*time.Second)

if strings.Contains(tc.Name, "mplex") {
// FIXME: mplex stalls on close, so we reset so we don't spend an extra 5s waiting for nothing
Expand Down

0 comments on commit 4dc78d7

Please sign in to comment.