mirror of
https://github.com/zyycn/codex-proxy-rs.git
synced 2026-12-01 08:01:06 +00:00
test(store): initialize configuration revision baseline
Initialize configuration and settings revisions after test migrations so functional assertions remain independent of migration revision increments. Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
@@ -101,6 +101,15 @@ impl TestDatabase {
|
||||
.run(&pool)
|
||||
.await
|
||||
.expect("apply test migrations");
|
||||
// 功能测试从统一版本基线验证递增与回滚,不依赖数据迁移累计的版本
|
||||
sqlx::query(
|
||||
"update runtime_settings
|
||||
set config_revision = 1, settings_revision = 1, account_error_protection_revision = 1
|
||||
where id = 1",
|
||||
)
|
||||
.execute(&pool)
|
||||
.await
|
||||
.expect("initialize test runtime settings revisions");
|
||||
Some(Self {
|
||||
admin,
|
||||
pool,
|
||||
|
||||
Reference in New Issue
Block a user