审查检查点:修正全量回归基础夹具
补充 SMTP 测试表结构,更新管理端点数量断言,并同步前端回归测试夹具与布局断言。
This commit is contained in:
1 parent
52a8c49c90
commit
9826345577
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() })
|
||||
|
||||
@@ -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{}{}
|
||||
|
||||
Reference in new issue
Block a user