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

Function testServerGracefulStopIdempotent

test/end2end_test.go:1003–1012  ·  view source on GitHub ↗
(t *testing.T, e env)

Source from the content-addressed store, hash-verified

1001}
1002
1003func testServerGracefulStopIdempotent(t *testing.T, e env) {
1004 te := newTest(t, e)
1005 te.userAgent = testAppUA
1006 te.startServer(&testServer{security: e.security})
1007 defer te.tearDown()
1008
1009 for i := 0; i < 3; i++ {
1010 te.srv.GracefulStop()
1011 }
1012}
1013
1014func (s) TestDetailedConnectionCloseErrorPropagatesToRPCError(t *testing.T) {
1015 rpcStartedOnServer := make(chan struct{})

Callers 1

Calls 4

newTestFunction · 0.70
GracefulStopMethod · 0.65
startServerMethod · 0.45
tearDownMethod · 0.45

Tested by

no test coverage detected