Skip to content

Commit

Permalink
handler test
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco Marini committed May 15, 2024
1 parent 1cb0274 commit 8d4683e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/weller/handler_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,12 @@
(component/start handler)
(tu/create-then-update-then-delete-node node-name)
(t/log! @result)
(component/stop handler)))

(deftest simple-make-handler-test
(let [result (promise)
;; note that handler is started automatically with this constructor
handler (handler/make-handler (filters/event? events/node-created) #(deliver result (get-node-name %)))]
(tu/create-then-update-then-delete-node node-name)
(t/log! @result)
(component/stop handler)))

0 comments on commit 8d4683e

Please sign in to comment.