Skip to content

Commit 11ecc04

Browse files
committed
fix test
1 parent 4b139d4 commit 11ecc04

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

modules/repository/commits_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ func TestPushCommits_ToAPIPayloadCommits(t *testing.T) {
8686
}
8787

8888
func TestPushCommits_AvatarLink(t *testing.T) {
89+
assert.NoError(t, models.PrepareTestDatabase())
90+
8991
pushCommits := NewPushCommits()
9092
pushCommits.Commits = []*PushCommit{
9193
{
@@ -108,7 +110,7 @@ func TestPushCommits_AvatarLink(t *testing.T) {
108110
pushCommits.Len = len(pushCommits.Commits)
109111

110112
assert.Equal(t,
111-
"/suburl/user/avatar/user2/-1",
113+
"/user/avatar/user2/-1",
112114
pushCommits.AvatarLink("[email protected]"))
113115

114116
assert.Equal(t,

0 commit comments

Comments
 (0)