Skip to content

Commit 18d2319

Browse files
committed
another place that needs to set the initial context
Signed-off-by: Andrew Thornton <[email protected]>
1 parent 8fde162 commit 18d2319

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

models/db/unit_tests.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,11 @@ func CreateTestEngine(fixturesDir string) error {
118118
x.ShowSQL(true)
119119
}
120120

121+
DefaultContext = &Context{
122+
Context: context.Background(),
123+
e: x,
124+
}
125+
121126
return InitFixtures(fixturesDir)
122127
}
123128

0 commit comments

Comments
 (0)