diff options
author | guillep2k <18600385+guillep2k@users.noreply.github.com> | 2020-02-26 23:30:57 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-26 23:30:57 -0300 |
commit | 93860af5423ba5f1ce6f33897e26233a6104f91e (patch) | |
tree | b40d0b267b4e0313a4aec4475ada213e7fdd4001 /models | |
parent | 7bf5834f2c5dba71464e5af670c8d7f49fa1c743 (diff) | |
download | gitea-93860af5423ba5f1ce6f33897e26233a6104f91e.tar.gz gitea-93860af5423ba5f1ce6f33897e26233a6104f91e.zip |
Fix SQLite concurrency problems by using BEGIN IMMEDIATE (#10368) (#10493)
Diffstat (limited to 'models')
-rw-r--r-- | models/unit_tests.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/unit_tests.go b/models/unit_tests.go index eb4da37fe5..dccb8db838 100644 --- a/models/unit_tests.go +++ b/models/unit_tests.go @@ -84,7 +84,7 @@ func MainTest(m *testing.M, pathToGiteaRoot string) { 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 } |