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