Skip to content

Commit

Permalink
why CI is failing?
Browse files Browse the repository at this point in the history
  • Loading branch information
qnkhuat committed Jan 3, 2024
1 parent 8fb953d commit d5202e5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/mb/hawk/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@
(apply merge-with (fn [x y] (if (number? x)
(+ x y)
y))
(for [i (range n)]
(for [i (range 1 (inc n))]
(do
(println "----------------------------")
(printf "Running tests the %s %s\n" (ordinal-str i) (if (> 1 i) "times" "time"))
Expand Down
8 changes: 4 additions & 4 deletions test/mb/hawk/core_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@
:single-threaded 1}]
(with-redefs [hawk/run-tests (fn [& _args] single-run-summary)]
(testing "run single time"
(is (= single-run-summary
(hawk/find-and-run-tests-repl {:times 1}))))
(is (= single-run-summary
(hawk/find-and-run-tests-repl {:times 1}))))

(testing "run multiple will combine the summary of all the runs"
(is (= (apply merge-with + (repeat 3 single-run-summary))
(hawk/find-and-run-tests-repl {:times 3})))))))
(is (= (apply merge-with + (repeat 3 single-run-summary))
(hawk/find-and-run-tests-repl {:times 3})))))))

0 comments on commit d5202e5

Please sign in to comment.