fix: 对齐规格解析跨端超时预算 (#257)
This commit is contained in:
@@ -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"):
|
||||
|
||||
Reference in New Issue
Block a user