MCPcopy Create free account
hub / github.com/InferCore/InferCore / TestHTTPLayerTimeouts_Overrides

Function TestHTTPLayerTimeouts_Overrides

internal/server/server_test.go:586–595  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

584}
585
586func TestHTTPLayerTimeouts_Overrides(t *testing.T) {
587 cfg := testConfig(100, true)
588 cfg.Server.HTTP.ReadTimeoutMS = 5000
589 cfg.Server.HTTP.WriteTimeoutMS = 6000
590 cfg.Server.HTTP.IdleTimeoutMS = 7000
591 r, w, i := HTTPLayerTimeouts(cfg)
592 if r != 5*time.Second || w != 6*time.Second || i != 7*time.Second {
593 t.Fatalf("got read=%v write=%v idle=%v", r, w, i)
594 }
595}
596
597func TestInfer_GlobalDeadline504(t *testing.T) {
598 cfg := testConfig(10_000, false)

Callers

nothing calls this directly

Calls 2

HTTPLayerTimeoutsFunction · 0.85
testConfigFunction · 0.70

Tested by

no test coverage detected