fix: 对齐规格解析跨端超时预算 (#257)

This commit is contained in:
chengma
2026-08-18 08:56:56 +08:00
parent 29cf66ce96
commit 6345b00106
7 changed files with 97 additions and 4 deletions
+9 -2
View File
@@ -13,7 +13,11 @@ from src.admin_gateway import (
ClaimCapabilities,
ClientInfo,
)
from src.http_admin_gateway import DEFAULT_ADMIN_BASE_URL, HttpAdminGateway
from src.http_admin_gateway import (
DEFAULT_ADMIN_BASE_URL,
PURCHASE_SPEC_RESOLUTION_TIMEOUT_SECONDS,
HttpAdminGateway,
)
from src.task_models import TaskType
@@ -243,7 +247,10 @@ class HttpAdminGatewayTest(unittest.TestCase):
self.assertEqual(
headers["idempotency-key"], "spec-resolution-v1:key"
)
self.assertEqual(opener.timeout, 5)
self.assertEqual(
opener.timeout, PURCHASE_SPEC_RESOLUTION_TIMEOUT_SECONDS
)
self.assertEqual(PURCHASE_SPEC_RESOLUTION_TIMEOUT_SECONDS, 60.0)
def test_resolve_purchase_spec_accepts_all_nonmatched_business_outcomes(self):
for outcome in ("uncertain", "rejected", "failed"):