mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-11-04 00:40:20 +00:00
Update ddns_test.go
This commit is contained in:
1 parent
c19e8eb252
commit
39e1c6d1be
1 file changed
+3
-2
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user