MCPcopy
hub / github.com/grpc/grpc-go / TestORCAPerRPCReport

Method TestORCAPerRPCReport

interop/orcalb_test.go:102–112  ·  view source on GitHub ↗

TestORCAPerRPCReport verifies that per-call ORCA load reports flow from the server through the orcaPicker's Done callback into the context.

(t *testing.T)

Source from the content-addressed store, hash-verified

100// TestORCAPerRPCReport verifies that per-call ORCA load reports flow from the
101// server through the orcaPicker's Done callback into the context.
102func (s) TestORCAPerRPCReport(t *testing.T) {
103 ctx, cancel := context.WithTimeout(context.Background(), defaultTestTimeout)
104 defer cancel()
105
106 srv := startORCAServer(t)
107 if err := srv.StartClient(grpc.WithDefaultServiceConfig(orcaSvcConfig())); err != nil {
108 t.Fatalf("Error starting client: %v", err)
109 }
110
111 DoORCAPerRPCTest(ctx, srv.Client)
112}
113
114// TestORCAOOBReport verifies that OOB ORCA load reports flow through
115// OnLoadReport and are returned by the picker when no per-call report is

Callers

nothing calls this directly

Calls 6

WithDefaultServiceConfigFunction · 0.92
startORCAServerFunction · 0.85
orcaSvcConfigFunction · 0.85
DoORCAPerRPCTestFunction · 0.85
StartClientMethod · 0.80
FatalfMethod · 0.65

Tested by

no test coverage detected