Skip to content

Commit

Permalink
Fix timeout in local garden run
Browse files Browse the repository at this point in the history
  • Loading branch information
zampino committed Sep 19, 2024
1 parent 6759b51 commit 72c00ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nextjournal/garden_cli.clj
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@
(doto (Thread. (fn [] (if (:success (wait-for #(try (<= 200
(:status (http/head url {:client (http/client {:follow-redirects :never})}))
399)
(catch Throwable _ false))))
(catch Throwable _ false)) timeout-seconds))
(println "Application ready on" url)
(do
(print-error (format "Application did not start after %ss." timeout-seconds))
Expand Down

0 comments on commit 72c00ae

Please sign in to comment.