mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
pkg/transport: change write size from 1MB -> 5MB
As we move to container-based infrastructure testing env on travis, the tcp write buffer is more than 1MB. Change the test according to the change on the testing env.
This commit is contained in:
parent
c620238257
commit
3cc4cdd363
@ -43,7 +43,7 @@ func TestReadWriteTimeoutDialer(t *testing.T) {
|
||||
defer conn.Close()
|
||||
|
||||
// fill the socket buffer
|
||||
data := make([]byte, 1024*1024)
|
||||
data := make([]byte, 5*1024*1024)
|
||||
timer := time.AfterFunc(d.wtimeoutd*5, func() {
|
||||
t.Fatal("wait timeout")
|
||||
})
|
||||
|
@ -52,7 +52,7 @@ func TestWriteReadTimeoutListener(t *testing.T) {
|
||||
defer conn.Close()
|
||||
|
||||
// fill the socket buffer
|
||||
data := make([]byte, 1024*1024)
|
||||
data := make([]byte, 5*1024*1024)
|
||||
timer := time.AfterFunc(wln.wtimeoutd*5, func() {
|
||||
t.Fatal("wait timeout")
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user