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

Function setUpServerOnly

internal/transport/transport_test.go:582–588  ·  view source on GitHub ↗
(t *testing.T, port int, sc *ServerConfig, ht hType)

Source from the content-addressed store, hash-verified

580}
581
582func setUpServerOnly(t *testing.T, port int, sc *ServerConfig, ht hType) *server {
583 server := newTestServer()
584 sc.ChannelzParent = server.channelz
585 go server.start(t, port, sc, ht)
586 server.wait(t, 2*time.Second)
587 return server
588}
589
590func setUp(t *testing.T, port int, ht hType) (*server, *http2Client, func()) {
591 copts := ConnectOptions{

Calls 3

newTestServerFunction · 0.70
startMethod · 0.45
waitMethod · 0.45

Tested by

no test coverage detected