Skip to content

Commit 80882e1

Browse files
committed
fix tests
1 parent 6413862 commit 80882e1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

models/action_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66
"testing"
77

88
"code.gitea.io/git"
9+
"code.gitea.io/gitea/modules/notification"
910
"code.gitea.io/gitea/modules/setting"
1011

1112
"github.com/stretchr/testify/assert"
@@ -243,7 +244,8 @@ func TestUpdateIssuesCommit_Issue5957(t *testing.T) {
243244

244245
func testCorrectRepoAction(t *testing.T, opts CommitRepoActionOptions, actionBean *Action) {
245246
AssertNotExistsBean(t, actionBean)
246-
_, err := CommitRepoAction(opts)
247+
evt, err := CommitRepoAction(opts)
248+
notification.NotifyCommitsPushed(evt.Pusher, evt.OpType, evt.Repo, evt.RefName, evt.Data)
247249
assert.NoError(t, err)
248250
AssertExistsAndLoadBean(t, actionBean)
249251
CheckConsistencyFor(t, &Action{})

0 commit comments

Comments
 (0)