restore original timeout

This commit is contained in:
Kenneth Jenkins 2025-04-25 13:09:55 -07:00
parent 5f83a15688
commit 0df62fee10

View file

@ -208,7 +208,7 @@ func TestLookup(t *testing.T) {
net.DefaultResolver = stubResolver(t)
t.Cleanup(func() { net.DefaultResolver = originalDefaultResolver })
ctx, clearTimeout := context.WithTimeout(context.Background(), time.Second*1000)
ctx, clearTimeout := context.WithTimeout(context.Background(), time.Second*10)
t.Cleanup(clearTimeout)
cfg, err := ParseConfig("host=localhost")