Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DBContext is just a Context #17100

Merged
merged 8 commits into from
Sep 23, 2021
Prev Previous commit
Next Next commit
avoid race
Signed-off-by: Andrew Thornton <art27@cantab.net>
zeripath committed Sep 22, 2021

Verified

This commit was signed with the committer’s verified signature.
commit 6b87fc2c95261d22b50faba2bf41e343607da35c
5 changes: 0 additions & 5 deletions models/db/unit_tests.go
Original file line number Diff line number Diff line change
@@ -128,11 +128,6 @@ func CreateTestEngine(fixturesDir string) error {

// PrepareTestDatabase load test fixtures into test database
func PrepareTestDatabase() error {
DefaultContext = &Context{
Context: context.Background(),
e: x,
}

return LoadFixtures()
}