Skip to content

Commit

Permalink
Fix leaky ENV leading to flakey spec failure
Browse files Browse the repository at this point in the history
  • Loading branch information
alexstoick committed Dec 19, 2024
1 parent a495586 commit ae86e2d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spec/ruby_snowflake/client_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@
ENV["SNOWFLAKE_QUERY_TIMEOUT"] = "1"
client.instance_variable_set(:@_enable_polling_queries, true)
end
after { ENV["SNOWFLAKE_MAX_CONNECTIONS"] = nil }
after do
ENV["SNOWFLAKE_QUERY_TIMEOUT"] = nil
end
let(:query) { "SELECT SYSTEM$WAIT(10)" }

it "attempts to cancel the query" do
Expand Down

0 comments on commit ae86e2d

Please sign in to comment.