소스 검색

more time

Darien Raymond 8 년 전
부모
커밋
00822812d4
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      testing/scenarios/shadowsocks_test.go

+ 2 - 2
testing/scenarios/shadowsocks_test.go

@@ -126,7 +126,7 @@ func TestShadowsocksAES256TCP(t *testing.T) {
 			assert.Error(err).IsNil()
 			assert.Int(nBytes).Equals(len(payload))
 
-			response := readFrom(conn, time.Second*10, 10240*1024)
+			response := readFrom(conn, time.Second*20, 10240*1024)
 			assert.Bytes(response).Equals(xor([]byte(payload)))
 			assert.Error(conn.Close()).IsNil()
 			wg.Done()
@@ -243,7 +243,7 @@ func TestShadowsocksChacha20TCP(t *testing.T) {
 			assert.Error(err).IsNil()
 			assert.Int(nBytes).Equals(len(payload))
 
-			response := readFrom(conn, time.Second*10, 10240*1024)
+			response := readFrom(conn, time.Second*20, 10240*1024)
 			assert.Bytes(response).Equals(xor([]byte(payload)))
 			assert.Error(conn.Close()).IsNil()
 			wg.Done()