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

Function verifyWaitForReadyEqualsTrue

clientconn_test.go:891–901  ·  view source on GitHub ↗
(cc *ClientConn)

Source from the content-addressed store, hash-verified

889}
890
891func verifyWaitForReadyEqualsTrue(cc *ClientConn) bool {
892 var i int
893 for i = 0; i < 10; i++ {
894 mc := cc.GetMethodConfig("/foo/bar")
895 if mc.WaitForReady != nil && *mc.WaitForReady == true {
896 break
897 }
898 time.Sleep(100 * time.Millisecond)
899 }
900 return i != 10
901}
902
903func testInvalidDefaultServiceConfig(t *testing.T, r *manual.Resolver, addr, sc string) {
904 _, err := NewClient(addr, WithTransportCredentials(insecure.NewCredentials()), WithResolvers(r), WithDefaultServiceConfig(sc))

Calls 1

GetMethodConfigMethod · 0.80

Tested by

no test coverage detected