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

Function TestResolveTCPAddrTimeout

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

Source from the content-addressed store, hash-verified

30}
31
32func TestResolveTCPAddrTimeout(t *testing.T) {
33 start := time.Now()
34 ResolveTCPAddrTimeout("testtesttest", time.Millisecond)
35 since := time.Since(start)
36 assert.Must(since < time.Millisecond*10)
37}
38
39func TestReplaceUnspecifiedIP(t *testing.T) {
40 Hostname = "guest"

Callers

nothing calls this directly

Calls 1

ResolveTCPAddrTimeoutFunction · 0.85

Tested by

no test coverage detected