summaryrefslogtreecommitdiffstats
path: root/models/unit_tests.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/unit_tests.go')
-rw-r--r--models/unit_tests.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/unit_tests.go b/models/unit_tests.go
index b9f894af7c..b2c487ddcd 100644
--- a/models/unit_tests.go
+++ b/models/unit_tests.go
@@ -88,7 +88,7 @@ func MainTest(m *testing.M, pathToGiteaRoot string) {
// CreateTestEngine creates a memory database and loads the fixture data from fixturesDir
func CreateTestEngine(fixturesDir string) error {
var err error
- x, err = xorm.NewEngine("sqlite3", "file::memory:?cache=shared")
+ x, err = xorm.NewEngine("sqlite3", "file::memory:?cache=shared&_txlock=immediate")
if err != nil {
return err
}