将阿里云 DNS 权限验证限制为六秒

This commit is contained in:
xuans committed 2026-09-16 01:28:06 +08:00
1 parent 3c1fce99be
commit 0e4ed9b2d9
13 files changed
+73 -20

No files matched your search

+1 -1
View File
@@ -85,7 +85,7 @@ func TestDNSCheckReportsLiveResultWithoutPersistingConfiguration(t *testing.T) {
t.Fatal("权限请求必须设置超时")
}
remaining := time.Until(deadline)
if remaining < 9*time.Second || remaining > 11*time.Second {
if remaining < 5*time.Second || remaining > 7*time.Second {
t.Fatalf("阿里云 CLI 权限验证时限错误:%s", remaining)
}
report := dnsprovider.AuthorizationReport{Provider: "aliyun", RequestedDomain: name, Verified: outcome == "allowed"}