Skip to content

Commit 5310738

Browse files
committed
fix tests
1 parent ac7d92b commit 5310738

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

modules/repofiles/action_test.go

+10-10
Original file line numberDiff line numberDiff line change
@@ -29,28 +29,28 @@ func TestCommitRepoAction(t *testing.T) {
2929
}{
3030
{
3131
userID: 2,
32-
repositoryID: 2,
32+
repositoryID: 16,
3333
commitRepoActionOptions: CommitRepoActionOptions{
3434
RefFullName: "refName",
3535
OldCommitID: "oldCommitID",
3636
NewCommitID: "newCommitID",
3737
Commits: &models.PushCommits{
3838
Commits: []*models.PushCommit{
3939
{
40-
Sha1: "abcdef1",
40+
Sha1: "69554a6",
4141
CommitterEmail: "[email protected]",
42-
CommitterName: "User Two",
43-
AuthorEmail: "user4@example.com",
44-
AuthorName: "User Four",
45-
Message: "message1",
42+
CommitterName: "User2",
43+
AuthorEmail: "user2@example.com",
44+
AuthorName: "User2",
45+
Message: "not signed commit",
4646
},
4747
{
48-
Sha1: "abcdef2",
48+
Sha1: "27566bd",
4949
CommitterEmail: "[email protected]",
50-
CommitterName: "User Two",
50+
CommitterName: "User2",
5151
AuthorEmail: "[email protected]",
52-
AuthorName: "User Two",
53-
Message: "message2",
52+
AuthorName: "User2",
53+
Message: "good signed commit (with not yet validated email)",
5454
},
5555
},
5656
Len: 2,

0 commit comments

Comments
 (0)