tests: adapt waiting for index search to whoosh write lock (#32031)

This commit is contained in:
Frédéric Péters 2019-04-15 20:29:16 +02:00
parent a8b430eb35
commit 0bffb44164
1 changed files with 1 additions and 0 deletions

View File

@ -396,6 +396,7 @@ def test_manager_waiting_index_message(app, admin_user):
resp = resp.form.submit().follow()
assert 'Content indexing has been scheduled' in resp.text
os.mkdir(connections['default'].get_backend().path)
call_command('update_index')
resp = app.get('/manage/pages/%s/' % page.id)
assert 'Content indexing has been scheduled' not in resp.text