mirror of
https://github.com/pomerium/pomerium.git
synced 2025-07-16 00:06:31 +02:00
restore original timeout
This commit is contained in:
parent
5f83a15688
commit
0df62fee10
1 changed files with 1 additions and 1 deletions
|
@ -208,7 +208,7 @@ func TestLookup(t *testing.T) {
|
||||||
net.DefaultResolver = stubResolver(t)
|
net.DefaultResolver = stubResolver(t)
|
||||||
t.Cleanup(func() { net.DefaultResolver = originalDefaultResolver })
|
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)
|
t.Cleanup(clearTimeout)
|
||||||
|
|
||||||
cfg, err := ParseConfig("host=localhost")
|
cfg, err := ParseConfig("host=localhost")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue