summaryrefslogtreecommitdiffstats
path: root/models/repo/star_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/repo/star_test.go')
-rw-r--r--models/repo/star_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/repo/star_test.go b/models/repo/star_test.go
index 20c4b6bef4..2dde09c745 100644
--- a/models/repo/star_test.go
+++ b/models/repo/star_test.go
@@ -28,8 +28,8 @@ func TestStarRepo(t *testing.T) {
func TestIsStaring(t *testing.T) {
assert.NoError(t, unittest.PrepareTestDatabase())
- assert.True(t, IsStaring(2, 4))
- assert.False(t, IsStaring(3, 4))
+ assert.True(t, IsStaring(db.DefaultContext, 2, 4))
+ assert.False(t, IsStaring(db.DefaultContext, 3, 4))
}
func TestRepository_GetStargazers(t *testing.T) {