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

Function frontendToScheduler

pkg/scheduler/scheduler_test.go:645–650  ·  view source on GitHub ↗
(t *testing.T, frontendLoop schedulerpb.SchedulerForFrontend_FrontendLoopClient, req *schedulerpb.FrontendToScheduler)

Source from the content-addressed store, hash-verified

643}
644
645func frontendToScheduler(t *testing.T, frontendLoop schedulerpb.SchedulerForFrontend_FrontendLoopClient, req *schedulerpb.FrontendToScheduler) {
646 require.NoError(t, frontendLoop.Send(req))
647 msg, err := frontendLoop.Recv()
648 require.NoError(t, err)
649 require.True(t, msg.Status == schedulerpb.OK)
650}
651
652// If this verification succeeds, there will be leaked goroutine left behind. It will be cleaned once grpc server is shut down.
653func verifyQuerierDoesntReceiveRequest(t *testing.T, querierLoop schedulerpb.SchedulerForQuerier_QuerierLoopClient, timeout time.Duration) {

Calls 2

SendMethod · 0.65
RecvMethod · 0.65

Tested by

no test coverage detected