Commit 3ec87ba8 authored by Sanad Liaquat's avatar Sanad Liaquat

Merge branch 'egb-refactor-ha-spec' into 'master'

Refactor `3_create/gitaly/high_availability_spec.rb` to use `let` syntax

See merge request gitlab-org/gitlab!34222
parents a68cf398 4d5e8e94
...@@ -11,14 +11,14 @@ module QA ...@@ -11,14 +11,14 @@ module QA
end end
let(:initial_file) { 'pushed_to_primary.txt' } let(:initial_file) { 'pushed_to_primary.txt' }
let(:final_file) { 'pushed_to_secondary.txt' } let(:final_file) { 'pushed_to_secondary.txt' }
let(:praefect_manager) { Service::PraefectManager.new }
before do before do
@praefect_manager = Service::PraefectManager.new
Flow::Login.sign_in Flow::Login.sign_in
end end
after do after do
@praefect_manager.reset praefect_manager.reset
end end
it 'makes sure that automatic failover is happening' do it 'makes sure that automatic failover is happening' do
...@@ -30,7 +30,7 @@ module QA ...@@ -30,7 +30,7 @@ module QA
push.file_content = "This should exist on both nodes" push.file_content = "This should exist on both nodes"
end end
@praefect_manager.stop_primary_node praefect_manager.stop_primary_node
project.visit! project.visit!
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment