mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-04-25 17:14:48 +00:00
Specify TEST_NAME in test settings to make concurrency tests work on sqlite.
Django 1.6 checks for this setting and defaults to None, which creates an in-memory database when using sqlite. This causes our race condition test in wagtailimages to fail, since it's not possible for multiple threads to share the same in-memory database.
This commit is contained in:
parent
e977ae5aec
commit
a8eacc2f22
1 changed files with 1 additions and 0 deletions
|
|
@ -14,6 +14,7 @@ DATABASES = {
|
|||
'default': {
|
||||
'ENGINE': os.environ.get('DATABASE_ENGINE', 'django.db.backends.postgresql_psycopg2'),
|
||||
'NAME': os.environ.get('DATABASE_NAME', 'wagtaildemo'),
|
||||
'TEST_NAME': os.environ.get('DATABASE_NAME', 'wagtaildemo'),
|
||||
'USER': os.environ.get('DATABASE_USER', 'postgres'),
|
||||
'PASSWORD': os.environ.get('DATABASE_PASS', None),
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue