(t *testing.T)
| 48 | } |
| 49 | |
| 50 | func 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 | |
| 61 | func TestHealthCheckRespondsWhenQueryProgressBlocks(t *testing.T) { |
| 62 | pool := &SessionPool{ |
nothing calls this directly
no outgoing calls
no test coverage detected