mirror of
https://github.com/CodeforLeipzig/stadtratmonitor.git
synced 2024-12-22 15:43:14 +01:00
Fix 503 errors in tests from Elasticsearch due to cluster not being ready
This commit is contained in:
parent
424cc0bf46
commit
83be2d5db1
1 changed files with 1 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
RSpec.configure do |config|
|
||||
config.before :each, elasticsearch: true do
|
||||
Paper.__elasticsearch__.create_index!(force: true)
|
||||
Elasticsearch::Model.client.cluster.health wait_for_status: "yellow"
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue