Skip to content

Commit

Permalink
test: wait after spit
Browse files Browse the repository at this point in the history
  • Loading branch information
armed committed May 21, 2024
1 parent c012e5f commit 9762637
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .mise.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[tools]
java = "oracle-graalvm-21.0.2"
2 changes: 2 additions & 0 deletions test/k16/kmono/api_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
(testing "Make feat changes to p1 and release again"
(spit (fs/file repo-root "packages/p1/src/foo.clj")
"(ns foo)\n(println :hello)")
(Thread/sleep 100)
(test-utils/shell-commands! ["git add ."
"git commit -m 'feat: p1 foo added'"])
(is (= [true
Expand All @@ -63,6 +64,7 @@
(spit (fs/file repo-root "packages/p2/src/bar.clj")
"(ns bar)\n(println :hello_bar)")
(spit (fs/file repo-root "src/lol.clj") "(ns lol)")
(Thread/sleep 100)
(test-utils/shell-commands! ["git add ."
"git commit -m 'fix: root and p2 bugs'"])
(is (= [true
Expand Down
2 changes: 1 addition & 1 deletion test/k16/kmono/test_utils.clj
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
(mapv (fn [cmd]
(let [result (bp/shell {:dir repo-root
:out :string} cmd)]
(Thread/sleep 20)
(Thread/sleep 50)
[cmd result]))
cmds)))

Expand Down

0 comments on commit 9762637

Please sign in to comment.