mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-11-05 00:50:21 +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()})
|
ctx := context.WithValue(context.Background(), DNSServerKey{}, []string{pc.LocalAddr().String()})
|
||||||
provider.UpdateDomain(ctx)
|
provider.UpdateDomain(ctx)
|
||||||
|
|
||||||
if uint64(attempts) != maxRetries {
|
expectedAttempts := int(maxRetries) * 2
|
||||||
t.Fatalf("expected exact attempt count of %d, got %d", maxRetries, attempts)
|
if attempts != expectedAttempts {
|
||||||
|
t.Fatalf("expected exact attempt count of %d, got %d", expectedAttempts, attempts)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user