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

Method TestClientMix

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

Source from the content-addressed store, hash-verified

852}
853
854func (s) TestClientMix(t *testing.T) {
855 s, ct, cancel := setUp(t, 0, normal)
856 defer cancel()
857 time.AfterFunc(time.Second, s.stop)
858 go func(ct ClientTransport) {
859 <-ct.Error()
860 ct.Close(fmt.Errorf("closed manually by test"))
861 }(ct)
862 for i := 0; i < 750; i++ {
863 time.Sleep(2 * time.Millisecond)
864 go performOneRPC(ct)
865 }
866}
867
868func (s) TestLargeMessage(t *testing.T) {
869 server, ct, cancel := setUp(t, 0, normal)

Callers

nothing calls this directly

Calls 5

setUpFunction · 0.85
performOneRPCFunction · 0.85
ErrorMethod · 0.65
CloseMethod · 0.65
ErrorfMethod · 0.65

Tested by

no test coverage detected