aboutsummaryrefslogtreecommitdiffstats
path: root/models/db/unit_tests.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/db/unit_tests.go')
-rw-r--r--models/db/unit_tests.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/models/db/unit_tests.go b/models/db/unit_tests.go
index 0540c9ba8a..781f0ecca2 100644
--- a/models/db/unit_tests.go
+++ b/models/db/unit_tests.go
@@ -5,6 +5,7 @@
package db
import (
+ "context"
"fmt"
"math"
"net/url"
@@ -117,6 +118,11 @@ func CreateTestEngine(fixturesDir string) error {
x.ShowSQL(true)
}
+ DefaultContext = &Context{
+ Context: context.Background(),
+ e: x,
+ }
+
return InitFixtures(fixturesDir)
}