diff --git a/pkg/models/namespace_users_test.go b/pkg/models/namespace_users_test.go index 4b69de6ff..16b659d88 100644 --- a/pkg/models/namespace_users_test.go +++ b/pkg/models/namespace_users_test.go @@ -60,7 +60,7 @@ func TestNamespaceUser_Create(t *testing.T) { NamespaceID: 2, }, wantErr: true, - errType: IsErrUserAlreadyHasAccess, + errType: IsErrUserAlreadyHasNamespaceAccess, }, { name: "NamespaceUsers Create with invalid right", @@ -97,7 +97,7 @@ func TestNamespaceUser_Create(t *testing.T) { NamespaceID: 1, }, wantErr: true, - errType: IsErrUserAlreadyHasAccess, + errType: IsErrUserAlreadyHasNamespaceAccess, }, } for _, tt := range tests {