trying to make travis work.

This commit is contained in:
Jonas Winkler
2020-11-12 17:12:58 +01:00
parent 9c37addc1e
commit 4fba7b661e
5 changed files with 20 additions and 54 deletions

View File

@@ -70,6 +70,9 @@ def open_index(recreate=False):
if exists_in(settings.INDEX_DIR) and not recreate:
return open_dir(settings.INDEX_DIR)
else:
# TODO: this is not thread safe. If 2 instances try to create the index
# at the same time, this fails. This currently prevents parallel
# tests.
return create_in(settings.INDEX_DIR, get_schema())