marick / Midje

Midje provides a migration path from clojure.test to a more flexible, readable, abstract, and gracious style of testing
MIT License
1.68k stars 128 forks source link

Dead loop problem solving adds a single line of code. #446

Closed xingzheone closed 1 year ago

xingzheone commented 6 years ago

when I (autotest :filter :one ) change to (autotest :filter :two ) the repl start Dead loop

(defn autotest
  [& args]
  (scheduling/stop :autotest)     ;;First, stop previous scheduling.  This is very important to me.
  (letfn [(start-periodic-check []
            (scheduling/schedule :autotest
                                 (project-state/mkfn:react-to-changes (autotest-options))
                                 (:interval (autotest-options))))]
xingzheone commented 5 years ago

(scheduling/stop :autotest)

philomates commented 5 years ago

Hi @xingzhefeng thanks for the suggestion. Would you mind opening a pull request that makes the recommended patch?