Commit 13007368 authored by Ahmad Sherif's avatar Ahmad Sherif

Use a unique feature name for Workhorse send blob migration

parent b92d5135
...@@ -62,7 +62,7 @@ module Gitlab ...@@ -62,7 +62,7 @@ module Gitlab
end end
def send_git_blob(repository, blob) def send_git_blob(repository, blob)
params = if Gitlab::GitalyClient.feature_enabled?(:project_raw_show) params = if Gitlab::GitalyClient.feature_enabled?(:workhorse_raw_show)
{ {
'GitalyServer' => gitaly_server_hash(repository), 'GitalyServer' => gitaly_server_hash(repository),
'GetBlobRequest' => { 'GetBlobRequest' => {
......
...@@ -325,7 +325,7 @@ describe Gitlab::Workhorse, lib: true do ...@@ -325,7 +325,7 @@ describe Gitlab::Workhorse, lib: true do
subject { described_class.send_git_blob(repository, blob) } subject { described_class.send_git_blob(repository, blob) }
context 'when Gitaly project_raw_show feature is enabled' do context 'when Gitaly workhorse_raw_show feature is enabled' do
it 'sets the header correctly' do it 'sets the header correctly' do
key, command, params = decode_workhorse_header(subject) key, command, params = decode_workhorse_header(subject)
...@@ -345,7 +345,7 @@ describe Gitlab::Workhorse, lib: true do ...@@ -345,7 +345,7 @@ describe Gitlab::Workhorse, lib: true do
end end
end end
context 'when Gitaly project_raw_show feature is disabled', skip_gitaly_mock: true do context 'when Gitaly workhorse_raw_show feature is disabled', skip_gitaly_mock: true do
it 'sets the header correctly' do it 'sets the header correctly' do
key, command, params = decode_workhorse_header(subject) key, command, params = decode_workhorse_header(subject)
......
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