Commit be9a1174 authored by Ash McKenzie's avatar Ash McKenzie Committed by Douglas Barbosa Alexandre

Consolidate must be a secondary expectations

parent 70ae6ee0
...@@ -286,11 +286,7 @@ describe Gitlab::Geo::GitSSHProxy, :geo do ...@@ -286,11 +286,7 @@ describe Gitlab::Geo::GitSSHProxy, :geo do
context 'against primary node' do context 'against primary node' do
let(:current_node) { primary_node } let(:current_node) { primary_node }
it 'raises an exception' do it_behaves_like 'must be a secondary'
expect do
subject.info_refs_receive_pack
end.to raise_error(described_class::MustBeASecondaryNode, 'Node is not a secondary or there is no primary Geo node')
end
end end
context 'against secondary node' do context 'against secondary node' do
...@@ -401,11 +397,7 @@ describe Gitlab::Geo::GitSSHProxy, :geo do ...@@ -401,11 +397,7 @@ describe Gitlab::Geo::GitSSHProxy, :geo do
context 'against primary node' do context 'against primary node' do
let(:current_node) { primary_node } let(:current_node) { primary_node }
it 'raises an exception' do it_behaves_like 'must be a secondary'
expect do
subject.receive_pack(info_refs_body_short)
end.to raise_error(described_class::MustBeASecondaryNode)
end
end end
context 'against secondary node' do context 'against secondary node' do
......
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