MCPcopy Create free account
hub / github.com/PostHog/duckgres / TestQueryProgressTimeout

Function TestQueryProgressTimeout

duckdbservice/progress_test.go:50–59  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

48}
49
50func TestQueryProgressTimeout(t *testing.T) {
51 // Verify the timeout is long enough for normal QueryProgress calls
52 // but short enough to prevent health check stalls.
53 if queryProgressTimeout < 100*time.Millisecond {
54 t.Errorf("queryProgressTimeout too short: %v", queryProgressTimeout)
55 }
56 if queryProgressTimeout > 2*time.Second {
57 t.Errorf("queryProgressTimeout too long (must be well under the 3s health check gRPC deadline): %v", queryProgressTimeout)
58 }
59}
60
61func TestHealthCheckRespondsWhenQueryProgressBlocks(t *testing.T) {
62 pool := &SessionPool{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected