Skip to content

Commit

Permalink
Fix test bad connection test (#1170)
Browse files Browse the repository at this point in the history
  • Loading branch information
aidanharan authored May 13, 2024
1 parent e7880d0 commit b6257ad
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/cases/adapter_test_sqlserver.rb
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,7 @@ class AdapterTestSQLServer < ActiveRecord::TestCase
assert_raise ActiveRecord::NoDatabaseError do
db_config = ActiveRecord::Base.configurations.configs_for(env_name: "arunit", name: "primary")
configuration = db_config.configuration_hash.merge(database: "nonexistent_activerecord_unittest")

connection = ActiveRecord::Base.sqlserver_connection configuration
connection = ActiveRecord::ConnectionAdapters::SQLServerAdapter.new(configuration)
connection.exec_query("SELECT 1")
end
end
Expand Down

0 comments on commit b6257ad

Please sign in to comment.