将阿里云 DNS 权限验证限制为六秒
This commit is contained in:
1 parent
3c1fce99be
commit
0e4ed9b2d9
13 files changed
+73
-20
No files matched your search
@@ -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"}
|
||||
|
||||
Reference in new issue
Block a user