Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
caioaao committed Jan 24, 2020
1 parent e7cb59f commit 9d9830c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions test/com/caioaao/tank/retry_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@
proc (fail-until n-attempts)]]
(with-redefs [tank.utils/sleep sleep-mock]
(tank.retry/with
(tank.retry/simple-sleep-config
(inc n-attempts) sleep-ms
:catch? (constantly true))
(proc))
(tank.retry/simple-sleep-config
(inc n-attempts) sleep-ms
:catch? (constantly true))
(proc))
(t/is (= (count @values-atom) n-attempts))
(t/is (every? #{sleep-ms} @values-atom))))

Expand Down
2 changes: 1 addition & 1 deletion test/com/caioaao/tank/try_run_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
(t/is (thrown-match? expected-exception-data
(try-run/try-run always-expected-exception)))
(t/is (thrown-match? unexpected-exception-data
(try-run/try-run always-unexpected-exception))))
(try-run/try-run always-unexpected-exception))))

(defn catch? [ex]
(case (-> (ex-data ex) :details)
Expand Down

0 comments on commit 9d9830c

Please sign in to comment.