(f func() (bool, error))
| 53 | ) |
| 54 | |
| 55 | func 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 | |
| 67 | func (s) TestCZServerRegistrationAndDeletion(t *testing.T) { |
| 68 | testcases := []struct { |
no outgoing calls
no test coverage detected