(t *testing.T, frontendLoop schedulerpb.SchedulerForFrontend_FrontendLoopClient, req *schedulerpb.FrontendToScheduler)
| 643 | } |
| 644 | |
| 645 | func 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. |
| 653 | func verifyQuerierDoesntReceiveRequest(t *testing.T, querierLoop schedulerpb.SchedulerForQuerier_QuerierLoopClient, timeout time.Duration) { |
no test coverage detected