Skip to content

Commit 469afb9

Browse files
stelcodesaustb
authored andcommitted
(maint) Fix factset-with-package-inventory-queries test
Replace contains? with not-any? to fix bug.
1 parent e748f59 commit 469afb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/puppetlabs/puppetdb/http/facts_test.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1968,7 +1968,7 @@
19681968
(testing "factsets with package inventory query should ignore deactivated nodes"
19691969
(let [responses (json/parse-string (slurp (:body (query-response
19701970
method endpoint))))]
1971-
(is (not (contains? (into [] (map #(get % "certname") responses)) "foo4")))))
1971+
(is (not-any? #(= "foo4" %) (map #(get % "certname") responses)))))
19721972

19731973
(testing "factset queries should return appropriate results"
19741974
(let [queries [["=" "certname" "foo1"]

0 commit comments

Comments
 (0)