summaryrefslogtreecommitdiffstats
path: root/models/org_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/org_test.go')
-rw-r--r--models/org_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/org_test.go b/models/org_test.go
index 9990a9d9f1..75dfc4262d 100644
--- a/models/org_test.go
+++ b/models/org_test.go
@@ -255,7 +255,7 @@ func TestGetOrgByName(t *testing.T) {
func TestCountOrganizations(t *testing.T) {
assert.NoError(t, db.PrepareTestDatabase())
- expected, err := db.DefaultContext().Engine().Where("type=?", UserTypeOrganization).Count(&User{})
+ expected, err := db.GetEngine(db.DefaultContext).Where("type=?", UserTypeOrganization).Count(&User{})
assert.NoError(t, err)
assert.Equal(t, expected, CountOrganizations())
}