From 6731bc46b272b85dbf5aa4ce6f61d09c79db55de Mon Sep 17 00:00:00 2001 From: Benjamin Vetter Date: Fri, 19 Jan 2024 10:14:47 +0100 Subject: [PATCH] Fix --- spec/search_flip/connection_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/search_flip/connection_spec.rb b/spec/search_flip/connection_spec.rb index 029d32f..7a62e26 100644 --- a/spec/search_flip/connection_spec.rb +++ b/spec/search_flip/connection_spec.rb @@ -35,11 +35,11 @@ let(:connection) { SearchFlip::Connection.new } after do - connection.update_cluster_settings(persistent: { action: { auto_create_index: false } }) if connection.version.to_i > 2 + connection.update_cluster_settings(persistent: { action: { auto_create_index: false } }) if connection.distribution || connection.version.to_i > 2 end it "updates the cluster settings" do - if connection.version.to_i > 2 + if connection.distribution || connection.version.to_i > 2 connection.update_cluster_settings(persistent: { action: { auto_create_index: false } }) connection.update_cluster_settings(persistent: { action: { auto_create_index: true } }) @@ -48,7 +48,7 @@ end it "returns true" do - if connection.version.to_i > 2 + if connection.distribution || connection.version.to_i > 2 expect(connection.update_cluster_settings(persistent: { action: { auto_create_index: false } })).to eq(true) end end