Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mrkamel committed Jan 19, 2024
1 parent f47cf0b commit 6731bc4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/search_flip/connection_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 } })

Expand All @@ -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
Expand Down

0 comments on commit 6731bc4

Please sign in to comment.