2014-09-16 17:28 GMT+02:00 James Reeves <ja...@booleanknot.com>: > On 16 September 2014 10:13, Herwig Hochleitner <hhochleit...@gmail.com> > wrote: > >> >> The thing I do on startup: (doseq [l (.getConnectors >> jetty)] (.getLocalPort l)), is my solution to wait until it's come fully up. >> > > Why would this work? As far as I'm aware, both .getConnectors and > .getLocalPort are unblocking. >
IIRC, .getLocalPort blocks in jetty9, until the port has been opened. Please excuse me for not reverifying it just now, but I'm quite sure that adding .getLocalPort solved the race condition in my test suite. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.