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

Method wantPing

test/servertester.go:167–177  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

165}
166
167func (st *serverTester) wantPing() *http2.PingFrame {
168 f, err := st.readFrame()
169 if err != nil {
170 st.t.Fatalf("Error while expecting an RST frame: %v", err)
171 }
172 pf, ok := f.(*http2.PingFrame)
173 if !ok {
174 st.t.Fatalf("got a %T; want *http2.GoAwayFrame", f)
175 }
176 return pf
177}
178
179func (st *serverTester) wantRSTStream(errCode http2.ErrCode) *http2.RSTStreamFrame {
180 f, err := st.readFrame()

Calls 2

readFrameMethod · 0.95
FatalfMethod · 0.65