Update ddns_test.go

This commit is contained in:
77-QiQi authored and GitHub committed 2026-09-14 10:57:37 +08:00
1 parent c19e8eb252
commit 39e1c6d1be
1 file changed
+3 -2
+3 -2
View File
@@ -244,8 +244,9 @@ func TestTransientSOAFailureAndRetry(t *testing.T) {
ctx := context.WithValue(context.Background(), DNSServerKey{}, []string{pc.LocalAddr().String()})
provider.UpdateDomain(ctx)
if uint64(attempts) != maxRetries {
t.Fatalf("expected exact attempt count of %d, got %d", maxRetries, attempts)
expectedAttempts := int(maxRetries) * 2
if attempts != expectedAttempts {
t.Fatalf("expected exact attempt count of %d, got %d", expectedAttempts, attempts)
}
}