Skip to content

Commit 8fde162

Browse files
committed
fix unit tests
Signed-off-by: Andrew Thornton <[email protected]>
1 parent cdcaf12 commit 8fde162

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

models/db/unit_tests.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
package db
66

77
import (
8+
"context"
89
"fmt"
910
"math"
1011
"net/url"
@@ -122,6 +123,11 @@ func CreateTestEngine(fixturesDir string) error {
122123

123124
// PrepareTestDatabase load test fixtures into test database
124125
func PrepareTestDatabase() error {
126+
DefaultContext = &Context{
127+
Context: context.Background(),
128+
e: x,
129+
}
130+
125131
return LoadFixtures()
126132
}
127133

0 commit comments

Comments
 (0)