Remove wrong "git.DefaultContext" (#35364)

This commit is contained in:
wxiaoguang authored and GitHub committed 2025-08-27 16:31:21 +00:00
1 parent e837c998b7
commit 60246730b5
71 files changed
+384 -476

No files matched your search

+1 -1
View File
@@ -50,7 +50,7 @@ func TestPushCommits_ToAPIPayloadCommits(t *testing.T) {
pushCommits.HeadCommit = &PushCommit{Sha1: "69554a6"}
repo := unittest.AssertExistsAndLoadBean(t, &repo_model.Repository{ID: 16})
payloadCommits, headCommit, err := pushCommits.ToAPIPayloadCommits(git.DefaultContext, repo)
payloadCommits, headCommit, err := pushCommits.ToAPIPayloadCommits(t.Context(), repo)
assert.NoError(t, err)
assert.Len(t, payloadCommits, 3)
assert.NotNil(t, headCommit)