mirror of
https://github.com/go-gitea/gitea.git
synced 2026-01-25 02:00:54 +01:00
fix test
This commit is contained in:
parent
b0811fe686
commit
b2f05ff4f7
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user