(t *testing.T)
| 271 | } |
| 272 | |
| 273 | func channelzSubChannel(t *testing.T) *channelz.SubChannel { |
| 274 | ch := channelz.RegisterChannel(nil, "test chan") |
| 275 | sc := channelz.RegisterSubChannel(ch, "test subchan") |
| 276 | t.Cleanup(func() { |
| 277 | channelz.RemoveEntry(sc.ID) |
| 278 | channelz.RemoveEntry(ch.ID) |
| 279 | }) |
| 280 | return sc |
| 281 | } |
| 282 | |
| 283 | // TestKeepaliveClientClosesUnresponsiveServer creates a server which does not |
| 284 | // respond to keepalive pings, and makes sure that the client closes the |
no test coverage detected