diff options
author | 2020-11-11 13:30:20 +0100 | |
---|---|---|
committer | 2020-11-11 13:30:20 +0100 | |
commit | 32e1d5d07f89bbb79ba29e45fe5ab319919cdf2c (patch) | |
tree | d8a98141ad5535c189632a5e5ed032bf7b5c7416 /test/auto_test.go | |
parent | 2845eaa9169a38f97dfc80d8feb20afc5a1f0cc3 (diff) | |
download | coredns-32e1d5d07f89bbb79ba29e45fe5ab319919cdf2c.tar.gz coredns-32e1d5d07f89bbb79ba29e45fe5ab319919cdf2c.tar.zst coredns-32e1d5d07f89bbb79ba29e45fe5ab319919cdf2c.zip |
auto test: increase sleep (#4282)
Doing a reload every 10ms and sleeping 10ms makes this too racy,
increase all those sleeps to 5ms. A better method would be to get
notified of the reload/change, this would require some polling to get
the RR we expect, with a much longer timeout to stop the test
eventually.
Signed-off-by: Miek Gieben <miek@miek.nl>
Diffstat (limited to 'test/auto_test.go')
-rw-r--r-- | test/auto_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/auto_test.go b/test/auto_test.go index 906f5223e..1c4828b04 100644 --- a/test/auto_test.go +++ b/test/auto_test.go @@ -46,7 +46,7 @@ func TestAuto(t *testing.T) { t.Fatal(err) } - time.Sleep(10 * time.Millisecond) // wait for it to be picked up + time.Sleep(50 * time.Millisecond) // wait for it to be picked up resp, err = dns.Exchange(m, udp) if err != nil { @@ -59,7 +59,7 @@ func TestAuto(t *testing.T) { // Remove db.example.org again. os.Remove(filepath.Join(tmpdir, "db.example.org")) - time.Sleep(10 * time.Millisecond) // wait for it to be picked up + time.Sleep(50 * time.Millisecond) // wait for it to be picked up resp, err = dns.Exchange(m, udp) if err != nil { t.Fatal("Expected to receive reply, but didn't") |