()
| 256 | var localhostIP string |
| 257 | |
| 258 | func getLocalhostAddrs() []string { |
| 259 | addrsOnce.Do(func() { |
| 260 | ip, err := net.ResolveIPAddr("ip4", "localhost") |
| 261 | if err != nil { |
| 262 | localhostIP = "127.0.0.1" // this is the most common answer, try it |
| 263 | } |
| 264 | localhostIP = ip.String() |
| 265 | }) |
| 266 | return []string{localhostIP} |
| 267 | } |
| 268 | |
| 269 | func checkMemberlistEntry(t *testing.T, kv *Client, key string, duration time.Duration) { |
| 270 | test.Poll(t, duration, nil, func() interface{} { |
no test coverage detected