Skip to content

Commit a55e05c

Browse files
authored
build(CD): Skip long-running tests (#5666)
**Story card:** [sc-16502](https://app.shortcut.com/simpledotorg/story/16502/make-cd-pipelines-faster) ## Because We're beginning to pay too much for CD ## This addresses Skipping unnecessary tests ## Test instructions suite tests — check that it takes less time
1 parent 09dd837 commit a55e05c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

spec/queries/patient_states/diabetes/bs_below200_patients_query_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
let(:period) { Period.current }
1010

1111
describe "#call" do
12-
it "returns all the patients with a blood sugar measurement below 200 in a region as of the given period" do
12+
skip "returns all the patients with a blood sugar measurement below 200 in a region as of the given period" do
1313
facility_1_bs_below_200_patients = create_list(:patient, 1, :bs_below_200, assigned_facility: regions[:facility_1])
1414
facility_1_bs_200_to_300_patients = create_list(:patient, 1, :bs_200_to_300, assigned_facility: regions[:facility_1])
1515
facility_1_bs_over_300_patients = create_list(:patient, 1, :bs_over_300, assigned_facility: regions[:facility_1])
@@ -44,7 +44,7 @@
4444
.to match_array((facility_1_bs_below_200_patients + facility_2_bs_below_200_patients).map(&:id))
4545
end
4646

47-
it "returns same number of patients with a blood sugar measurement below 200 as in the reporting facility states" do
47+
skip "returns same number of patients with a blood sugar measurement below 200 as in the reporting facility states" do
4848
_facility_1_bs_below_200_patients = create_list(:patient, 1, :bs_below_200, assigned_facility: regions[:facility_1])
4949
refresh_views
5050

spec/queries/patient_states/diabetes/bs_over200_patients_query_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
let(:period) { Period.current }
1010

1111
describe "#call" do
12-
it "returns all the patients with a blood sugar measurement over 200 in a region as of the given period" do
12+
skip "returns all the patients with a blood sugar measurement over 200 in a region as of the given period" do
1313
facility_1_bs_below_200_patients = create_list(:patient, 1, :bs_below_200, assigned_facility: regions[:facility_1])
1414
facility_1_bs_200_to_300_patients = create_list(:patient, 1, :bs_200_to_300, assigned_facility: regions[:facility_1])
1515
facility_1_bs_over_300_patients = create_list(:patient, 1, :bs_over_300, assigned_facility: regions[:facility_1])
@@ -55,7 +55,7 @@
5555
facility_2_bs_over_300_patients.map(&:id))
5656
end
5757

58-
it "returns same number of patients with a blood sugar measurement over 200 as in the reporting facility states" do
58+
skip "returns same number of patients with a blood sugar measurement over 200 as in the reporting facility states" do
5959
_facility_1_uncontrolled_patients =
6060
create_list(:patient, 1, :bs_200_to_300, assigned_facility: regions[:facility_1]) +
6161
create_list(:patient, 1, :bs_over_300, assigned_facility: regions[:facility_1])

0 commit comments

Comments
 (0)