Skip to content

Commit

Permalink
Make this test order independent
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelklishin committed Jul 16, 2015
1 parent 478efa0 commit c1597b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/monger/test/regular_finders_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@
(let [collection "libraries"
_ (mc/insert db collection { :language "Clojure", :name "monger" })
result (mc/find db collection { :language "Clojure"} [:language])]
(is (= (seq [:_id :language]) (keys (mgcnv/from-db-object (.next result) true))))))
(is (= (set [:_id :language]) (-> (mgcnv/from-db-object (.next result) true) keys set)))))

(deftest find-and-iterate-over-multiple-documents-the-hard-way
(let [collection "libraries"]
Expand Down

0 comments on commit c1597b1

Please sign in to comment.