Skip to content
Snippets Groups Projects
Commit 6f8dd952 authored by Ryan Senior's avatar Ryan Senior
Browse files

Fix transient issue with pulse search test

The test query to ensure alerts aren't returned with pulse search, and
just filtering out the id of the pulse to ensure it's not in the
results. That test can fail if there happens to be a search result
with the same id as the (missing) pulse. Adding another predicate to
ensure it's only looking for pulses.
parent ee4a9002
No related branches found
No related tags found
No related merge requests found
......@@ -226,4 +226,7 @@
:alert_first_only false
:alert_above_goal nil
:name nil}]]
(filter #(= (u/get-id pulse) (:id %)) ((user->client :crowberto) :get 200 "search")))))
(filter (fn [{:keys [model id]}]
(and (= id (u/get-id pulse))
(= "pulse" model)))
((user->client :crowberto) :get 200 "search")))))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment