Skip to content

Commit

Permalink
Fix flaky test
Browse files Browse the repository at this point in the history
This test wasn't properly waiting for the add emails to be sent.
  • Loading branch information
tobias committed Jul 2, 2023
1 parent cd2d213 commit 7aea3a6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/clojars/integration/users_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,11 @@
(register-as "dantheman" "[email protected]" "password")
(visit "/groups/org.clojars.dantheman")
(fill-in [:#username] "fixture")
((fn [session]
;; clear the add emails
(email/expect-mock-emails 2)
(email/wait-for-mock-emails)
session))
(press "Add Member")
((fn [session] (email/expect-mock-emails 2) session))
(press "Remove Member"))
Expand Down

0 comments on commit 7aea3a6

Please sign in to comment.