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

Method TestClientErrorNotify

internal/transport/transport_test.go:820–827  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

818}
819
820func (s) TestClientErrorNotify(t *testing.T) {
821 server, ct, cancel := setUp(t, 0, normal)
822 defer cancel()
823 go server.stop()
824 // ct.reader should detect the error and activate ct.Error().
825 <-ct.Error()
826 ct.Close(fmt.Errorf("closed manually by test"))
827}
828
829func performOneRPC(ct ClientTransport) {
830 callHdr := &CallHdr{

Callers

nothing calls this directly

Calls 5

setUpFunction · 0.85
stopMethod · 0.65
ErrorMethod · 0.65
CloseMethod · 0.65
ErrorfMethod · 0.65

Tested by

no test coverage detected