reduce sleeps (#4205)

This reduces the amount of sleep time to speed up testing.

master:
PASS
ok  	github.com/coredns/coredns/test	42.088s
12,33s user 1,30s system 44,29s elapsed 30%CPU ()

this branch:
PASS
ok  	github.com/coredns/coredns/test	33.527s

Signed-off-by: Miek Gieben <miek@miek.nl>
This commit is contained in:
Miek Gieben
2020-10-15 13:19:39 +02:00
committed by GitHub
parent 269c0c5dab
commit 6938dac21d
4 changed files with 11 additions and 12 deletions

View File

@@ -21,7 +21,7 @@ func TestZoneReload(t *testing.T) {
corefile := `
example.org:0 {
file ` + name + ` {
reload 1s
reload 0.1s
}
}
example.net:0 {
@@ -47,7 +47,7 @@ func TestZoneReload(t *testing.T) {
// Remove RR from the Apex
ioutil.WriteFile(name, []byte(exampleOrgUpdated), 0644)
time.Sleep(2 * time.Second) // reload time
time.Sleep(150 * time.Millisecond) // reload time
resp, err = dns.Exchange(m, udp)
if err != nil {