mirror of
https://github.com/coredns/coredns.git
synced 2026-04-16 08:55:33 -04:00
Fix data race in xfr.go (#8039)
Signed-off-by: Ryan Brewster <rpb@anthropic.com>
This commit is contained in:
@@ -290,7 +290,7 @@ func TestSecondaryZoneNotify(t *testing.T) {
|
||||
if len(r.Answer) != 0 {
|
||||
break
|
||||
}
|
||||
time.Sleep(1000 * time.Microsecond)
|
||||
time.Sleep(100 * time.Millisecond)
|
||||
}
|
||||
if len(r.Answer) == 0 {
|
||||
t.Fatalf("Expected answer section")
|
||||
@@ -323,7 +323,7 @@ www IN A 127.0.0.1
|
||||
if len(r.Answer) != 0 {
|
||||
break
|
||||
}
|
||||
time.Sleep(1000 * time.Microsecond)
|
||||
time.Sleep(100 * time.Millisecond)
|
||||
}
|
||||
if len(r.Answer) != 1 {
|
||||
t.Fatalf("Expected one RR in answer section got %d", len(r.Answer))
|
||||
|
||||
Reference in New Issue
Block a user