Skip to content

Commit

Permalink
Fixed test to not depend to the mongodb insertion order
Browse files Browse the repository at this point in the history
  • Loading branch information
aspasia committed Jun 21, 2019
1 parent 8e35dd8 commit dde6d1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/freecoin_lib/test/db/tag.clj
Expand Up @@ -47,7 +47,7 @@
(blockchain/count-tags mongo-bc {}) => 5)

(fact "Listing tags works"
(:count (last (blockchain/list-tags mongo-bc {}))) => 4)
(:count (first (filter #(= (:tag %) "project-1") (blockchain/list-tags mongo-bc {})))) => 4)

(fact "Can get a tag by name"
(:created-by (blockchain/get-tag mongo-bc "project-1" {})) => "participant-1")
Expand Down

0 comments on commit dde6d1e

Please sign in to comment.