MCPcopy Index your code
hub / github.com/CodisLabs/codis / TestLookupIPTimeout

Function TestLookupIPTimeout

pkg/utils/resolver_test.go:18–23  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

16}
17
18func TestLookupIPTimeout(t *testing.T) {
19 start := time.Now()
20 LookupIPTimeout("testtesttest", time.Millisecond)
21 since := time.Since(start)
22 assert.Must(since < time.Millisecond*10)
23}
24
25func TestResolveTCPAddr(t *testing.T) {
26 tcpAddr := ResolveTCPAddr("127.0.0.1:1000")

Callers

nothing calls this directly

Calls 1

LookupIPTimeoutFunction · 0.85

Tested by

no test coverage detected