Files
CollabTable/shared/backend/carriernodeclient/carriernodeclient_test.go
T
Gabriel20xx 97c237be80
Lint / Lint (push) Successful in 1m8s
Tests / Go backend (push) Failing after 1m23s
Tests / Dashboard checks (push) Failing after 38s
Docker / Docker Build & Push (push) Failing after 6m29s
feat(sync): paginate Android sync with change tokens
2026-10-20 15:27:53 +00:00

22 lines
592 B
Go

package carriernodeclient
import (
"net/http"
"testing"
"time"
)
func TestHTTPClientBoundsResponseHeaderWaitWithoutLimitingStreams(t *testing.T) {
client := newHTTPClient()
if client.Timeout != 0 {
t.Fatalf("client total timeout = %s, want no total timeout for media streams", client.Timeout)
}
transport, ok := client.Transport.(*http.Transport)
if !ok {
t.Fatalf("transport type = %T, want *http.Transport", client.Transport)
}
if transport.ResponseHeaderTimeout != 10*time.Second {
t.Fatalf("response header timeout = %s, want 10s", transport.ResponseHeaderTimeout)
}
}