Skip to content

Commit 3b206a1

Browse files
committed
fixing search test regressions re: query counts
1 parent 3173914 commit 3b206a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/api/search_controller_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ class SearchControllerTest < ActionDispatch::IntegrationTest
226226
"Did not return correct array of matching accessions, expected #{expected_accessions} but found #{matching_accessions}"
227227

228228
assert_equal @random_seed, json['studies'].first['term_matches'].first
229-
assert_equal 2, json['match_by_data']['numResults:scp:text']
229+
assert_equal expected_accessions.count, json['match_by_data']['numResults:scp:text']
230230

231231
# test exact phrase
232232
search_phrase = '"API Test Study"'
@@ -571,7 +571,7 @@ class SearchControllerTest < ActionDispatch::IntegrationTest
571571
detail.save!
572572
cells = %w[cellA cellB cellC cellD cellE cellF cellG]
573573
FactoryBot.create(
574-
:metadata_file, name: 'metadata.txt', study: search_study, use_metadata_convention: true, cell_input: cells,
574+
:metadata_file, name: 'metadata.txt', study: search_study, cell_input: cells,
575575
annotation_input: [{ name: 'species', type: 'group', values: %w[dog cat dog dog cat cat cat] }]
576576
)
577577
coordinates = 1.upto(7).to_a

0 commit comments

Comments
 (0)