2
0
mirror of https://github.com/soheilhy/cmux.git synced 2024-11-10 03:31:52 +08:00

Increase test timeout from 100ms to 500ms

This commit is contained in:
Peter Edge 2017-08-14 15:22:33 -04:00
parent 34a8ab6cda
commit 0c129dc694

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())