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

Function verifyResultWithDelay

test/channelz_test.go:55–65  ·  view source on GitHub ↗
(f func() (bool, error))

Source from the content-addressed store, hash-verified

53)
54
55func verifyResultWithDelay(f func() (bool, error)) error {
56 var ok bool
57 var err error
58 for i := 0; i < 1000; i++ {
59 if ok, err = f(); ok {
60 return nil
61 }
62 time.Sleep(10 * time.Millisecond)
63 }
64 return err
65}
66
67func (s) TestCZServerRegistrationAndDeletion(t *testing.T) {
68 testcases := []struct {

Calls

no outgoing calls

Tested by

no test coverage detected