Fix data race in xfr.go (#8039)

Signed-off-by: Ryan Brewster <rpb@anthropic.com>
This commit is contained in:
rpb-ant
2026-04-11 04:39:31 -04:00
committed by GitHub
parent c0e6e7cef3
commit 0ed3aae547
3 changed files with 14 additions and 5 deletions

View File

@@ -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))