Explorar o código

lib/api: Slightly unflake TestCSRFRequired by allowing longer timeout

Jakob Borg %!s(int64=6) %!d(string=hai) anos
pai
achega
6be6de4b4a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/api/api_test.go

+ 1 - 1
lib/api/api_test.go

@@ -566,7 +566,7 @@ func TestCSRFRequired(t *testing.T) {
 	}
 
 	cli := &http.Client{
-		Timeout: time.Second,
+		Timeout: time.Minute,
 	}
 
 	// Getting the base URL (i.e. "/") should succeed.