Просмотр исходного кода

Increase timeouts in automated tests

Rod Hynes 9 лет назад
Родитель
Сommit
c3b2644fbb
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      psiphon/controller_test.go
  2. 1 1
      psiphon/server/server_test.go

+ 1 - 1
psiphon/controller_test.go

@@ -764,7 +764,7 @@ func (TestHostNameTransformer) TransformHostName(string) (string, bool) {
 func fetchAndVerifyWebsite(t *testing.T, httpProxyPort int) {
 
 	testUrl := "https://raw.githubusercontent.com/Psiphon-Labs/psiphon-tunnel-core/master/LICENSE"
-	roundTripTimeout := 10 * time.Second
+	roundTripTimeout := 30 * time.Second
 	expectedResponsePrefix := "                    GNU GENERAL PUBLIC LICENSE"
 	expectedResponseSize := 35148
 	checkResponse := func(responseBody string) bool {

+ 1 - 1
psiphon/server/server_test.go

@@ -434,7 +434,7 @@ func makeTunneledWebRequest(t *testing.T, localHTTPProxyPort int) error {
 func makeTunneledNTPRequest(t *testing.T, localSOCKSProxyPort int, udpgwServerAddress string) error {
 
 	testHostname := "pool.ntp.org"
-	timeout := 5 * time.Second
+	timeout := 10 * time.Second
 
 	localUDPProxyAddress, err := net.ResolveUDPAddr("udp", "127.0.0.1:7301")
 	if err != nil {