MCPcopy Create free account
hub / github.com/cortexproject/cortex / testReq

Function testReq

pkg/frontend/v1/queue_test.go:38–49  ·  view source on GitHub ↗
(ctx context.Context, reqID, user string)

Source from the content-addressed store, hash-verified

36}
37
38func testReq(ctx context.Context, reqID, user string) *request {
39 return &request{
40 originalCtx: ctx,
41 err: make(chan error, 1),
42 request: &httpgrpc.HTTPRequest{
43 // Good enough for testing.
44 Method: user,
45 Url: reqID,
46 },
47 response: make(chan *httpgrpc.HTTPResponse, 1),
48 }
49}
50
51func TestDequeuesExpiredRequests(t *testing.T) {
52 var config Config

Callers 2

TestRoundRobinQueuesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected