From 815c93a715a7e6cd573f4e29f18f29ab45e98296 Mon Sep 17 00:00:00 2001 From: Zyy Date: Fri, 16 Oct 2026 17:15:05 +0800 Subject: [PATCH] test(store): make group capacity fixtures independent of defaults Set inherited concurrency explicitly so the aggregation test exercises its intended 3 + 4 capacity without depending on installation defaults. Co-authored-by: Codex --- .../crates/gateway-store/tests/postgres/account_groups.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/backend/crates/gateway-store/tests/postgres/account_groups.rs b/backend/crates/gateway-store/tests/postgres/account_groups.rs index 807adc074..374a3f571 100644 --- a/backend/crates/gateway-store/tests/postgres/account_groups.rs +++ b/backend/crates/gateway-store/tests/postgres/account_groups.rs @@ -62,6 +62,11 @@ async fn groups_aggregate_cross_provider_members_and_key_bindings_without_multip let Some(database) = TestDatabase::create("account_group_aggregate").await else { return; }; + // 显式固定继承上限,让分组聚合断言不依赖安装时的初始设置 + sqlx::query("update runtime_settings set max_concurrent_per_account = 3 where id = 1") + .execute(&database.pool) + .await + .expect("set inherited account concurrency"); seed_account( &database.pool, "acct_group_openai",