Skip to content

Commit

Permalink
PAUSED: Use git resume to continue working.
Browse files Browse the repository at this point in the history
  • Loading branch information
Fryguy committed Apr 6, 2022
1 parent 6510d00 commit 817fcc4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spec/failover_monitor_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def active_databases_conninfo
context "private" do
describe "#database_in_recovery?" do
before do
@connection = PG::Connection.open(:dbname => 'vmdb_test')
@connection = ConnectionHelper.connection_for('vmdb_test')
end

after do
Expand Down
2 changes: 1 addition & 1 deletion spec/server_store_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
end

before do
@connection = PG::Connection.open(:dbname => 'vmdb_test')
@connection = ConnectionHelper.connection_for('vmdb_test')
@connection.exec("START TRANSACTION")
@connection.exec("CREATE SCHEMA repmgr")
@connection.exec(<<-SQL)
Expand Down
7 changes: 7 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
if ENV['CI']
require 'simplecov'
SimpleCov.start
end

Dir[File.join(__dir__, "support/**/*.rb")].each { |f| require f }

RSpec.configure do |config|
# Enable flags like --only-failures and --next-failure
config.example_status_persistence_file_path = ".rspec_status"
Expand Down

0 comments on commit 817fcc4

Please sign in to comment.