Skip to content

Commit

Permalink
replace exclude_search_tests?
Browse files Browse the repository at this point in the history
  • Loading branch information
Yunwei Wang committed Feb 7, 2024
1 parent 5c0f021 commit 0241c69
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ class SinglePatientAPIGroup < Inferno::TestGroup
id = test_group.id

group_config = {}
if test_group.respond_to?(:metadata) && test_group.metadata.exclude_search_tests?
if test_group.respond_to?(:metadata) && test_group.metadata.delayed? && !test_group.metadata.searchable_delayed_resource?
test_group.children.reject! { |child| child.include? USCoreTestKit::SearchTest }
group_config[:options] = { read_all_resources: true }
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ class SinglePatientUSCore4APIGroup < Inferno::TestGroup
id = test_group.id

group_config = {}
if test_group.respond_to?(:metadata) && test_group.metadata.exclude_search_tests?
if test_group.respond_to?(:metadata) && test_group.metadata.delayed? && !test_group.metadata.searchable_delayed_resource?
test_group.children.reject! { |child| child.include? USCoreTestKit::SearchTest }
group_config[:options] = { read_all_resources: true }
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def self.user_runnable?
id = test_group.id

group_config = {}
if test_group.respond_to?(:metadata) && test_group.metadata.exclude_search_tests?
if test_group.respond_to?(:metadata) && test_group.metadata.delayed? && !test_group.metadata.searchable_delayed_resource?
test_group.children.reject! { |child| child.include? USCoreTestKit::SearchTest }
group_config[:options] = { read_all_resources: true }
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ class SinglePatientUSCore6APIGroup < Inferno::TestGroup
id = test_group.id

group_config = {}
if test_group.respond_to?(:metadata) && test_group.metadata.exclude_search_tests?
if test_group.respond_to?(:metadata) && test_group.metadata.delayed? && !test_group.metadata.searchable_delayed_resource?
test_group.children.reject! { |child| child.include? USCoreTestKit::SearchTest }
group_config[:options] = { read_all_resources: true }
end
Expand Down

0 comments on commit 0241c69

Please sign in to comment.