审查检查点:修正全量回归基础夹具

补充 SMTP 测试表结构,更新管理端点数量断言,并同步前端回归测试夹具与布局断言。
This commit is contained in:
xuans committed 2026-09-30 05:01:03 +08:00
1 parent a298dbe75f
commit 5ff74c728c
4 files changed
+5 -5

No files matched your search

@@ -135,7 +135,7 @@ func newAuthenticationTestEngine(t *testing.T) *xorm.Engine {
t.Fatalf("创建测试数据库失败:%v", err)
}
engine.SetMaxOpenConns(1)
if err = engine.Sync2(&models.User{}, &models.Email{}, &models.UserEmail{}, &models.Rule{}); err != nil {
if err = engine.Sync2(&models.User{}, &models.Email{}, &models.UserEmail{}, &models.Rule{}, &models.UserTrustedSender{}); err != nil {
t.Fatalf("初始化测试数据库失败:%v", err)
}
t.Cleanup(func() { _ = engine.Close() })
+1 -1
View File
@@ -94,7 +94,7 @@ func TestAdminPluginRestartScope(t *testing.T) {
func TestManagementEndpointCatalog(t *testing.T) {
endpoints := ManagementEndpoints()
if len(endpoints) != 37 {
if len(endpoints) != 47 {
t.Fatalf("unexpected endpoint count: %d", len(endpoints))
}
seen := map[string]struct{}{}