diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-11-17 21:09:20 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-11-17 21:09:20 +0300 |
commit | c663374b3d4d91780d07dd825be74bfbee552f45 (patch) | |
tree | 1c821b0950330e63cb008320d003fd020b0a11c6 /spec/services/ci/build_report_result_service_spec.rb | |
parent | 6535cf9c79362862c31ea7d26c61541b84db18d9 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/services/ci/build_report_result_service_spec.rb')
-rw-r--r-- | spec/services/ci/build_report_result_service_spec.rb | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/spec/services/ci/build_report_result_service_spec.rb b/spec/services/ci/build_report_result_service_spec.rb index 134b662a72a..7c2702af086 100644 --- a/spec/services/ci/build_report_result_service_spec.rb +++ b/spec/services/ci/build_report_result_service_spec.rb @@ -26,18 +26,6 @@ RSpec.describe Ci::BuildReportResultService do expect(unique_test_cases_parsed).to eq(4) end - context 'when feature flag for tracking is disabled' do - before do - stub_feature_flags(track_unique_test_cases_parsed: false) - end - - it 'creates the report but does not track the event' do - expect(Gitlab::UsageDataCounters::HLLRedisCounter).not_to receive(:track_event) - expect(build_report_result.tests_name).to eq("test") - expect(Ci::BuildReportResult.count).to eq(1) - end - end - context 'when data has already been persisted' do it 'raises an error and do not persist the same data twice' do expect { 2.times { described_class.new.execute(build) } }.to raise_error(ActiveRecord::RecordNotUnique) |