修复飘红问题
Some checks failed
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Failing after 15h48m25s

This commit is contained in:
2026-02-02 17:52:14 +08:00
parent 301eb6158e
commit 0b82f30f86
4 changed files with 38 additions and 21 deletions

View File

@@ -152,7 +152,7 @@ func TestPermissionStore_GetAll_AvailableForRoleType(t *testing.T) {
t.Run("GetAll按平台角色类型过滤", func(t *testing.T) {
roleType := 1
perms, err := store.GetAll(ctx, &roleType)
perms, err := store.GetAll(ctx, &roleType, nil)
require.NoError(t, err)
var codes []string
@@ -165,7 +165,7 @@ func TestPermissionStore_GetAll_AvailableForRoleType(t *testing.T) {
t.Run("GetAll按客户角色类型过滤", func(t *testing.T) {
roleType := 2
perms, err := store.GetAll(ctx, &roleType)
perms, err := store.GetAll(ctx, &roleType, nil)
require.NoError(t, err)
var codes []string
@@ -177,7 +177,7 @@ func TestPermissionStore_GetAll_AvailableForRoleType(t *testing.T) {
})
t.Run("GetAll不过滤时返回所有", func(t *testing.T) {
perms, err := store.GetAll(ctx, nil)
perms, err := store.GetAll(ctx, nil, nil)
require.NoError(t, err)
var codes []string