2
0
mirror of https://github.com/soheilhy/cmux.git synced 2025-01-18 18:56:26 +08:00

Merge pull request #51 from peter-edge/increase-test-timeout

Increase test timeout from 100ms to 500ms
This commit is contained in:
Soheil Hassas Yeganeh 2017-08-14 16:05:13 -04:00 committed by GitHub
commit 7e08502c7a

View File

@ -253,7 +253,7 @@ func TestTimeout(t *testing.T) {
lis, Close := testListener(t) lis, Close := testListener(t)
defer Close() defer Close()
result := make(chan int, 5) result := make(chan int, 5)
testDuration := time.Millisecond * 100 testDuration := time.Millisecond * 500
m := New(lis) m := New(lis)
m.SetReadTimeout(testDuration) m.SetReadTimeout(testDuration)
http1 := m.Match(HTTP1Fast()) http1 := m.Match(HTTP1Fast())