mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-03 15:07:12 +02:00
fix test
This commit is contained in:
1 parent
b0811fe686
commit
b2f05ff4f7
1 file changed
+8
@@ -90,6 +90,14 @@ func TestActionsJobTokenAccessLFS(t *testing.T) {
|
||||
task.RepoID = repository.ID
|
||||
err := db.Insert(t.Context(), task)
|
||||
require.NoError(t, err)
|
||||
|
||||
// Enable Actions unit for the repository
|
||||
err = db.Insert(t.Context(), &repo_model.RepoUnit{
|
||||
RepoID: repository.ID,
|
||||
Type: unit_model.TypeActions,
|
||||
Config: &repo_model.ActionsConfig{},
|
||||
})
|
||||
require.NoError(t, err)
|
||||
session := emptyTestSession(t)
|
||||
httpContext := APITestContext{
|
||||
Session: session,
|
||||
|
||||
Reference in new issue
Block a user