                                      :j2 :onyx.task-scheduler/balanced} 
                    :tasks {:j1 [:t1] :j2 [:t2]}
                    :allocations {:j1 {:t1 [:a :b]}
-                                 :j2 {:t2 [:c :d]}}}
+                                 :j2 {:t2 [:c :d]}}
+                   :messaging {:onyx.messaging/impl :dummy-messenger}}
       new-replica (f old-replica)
       diff (rep-diff old-replica new-replica)]
   (fact (:allocations (f old-replica)) => {:j1 {:t1 [:a :b]} :j2 {:t2 [:c]}})

(ns onyx.log.leave-cluster-test
  (:require [onyx.extensions :as extensions]
            [onyx.log.entry :refer [create-log-entry]]
            [onyx.system]
            [midje.sweet :refer :all]))


      rep-diff (partial extensions/replica-diff entry)
      rep-reactions (partial extensions/reactions entry)
      old-replica {:pairs {:a :b :b :c :c :a} :peers [:a :b :c]
                   :messaging {:onyx.messaging/impl :dummy-messenger}
                   :job-scheduler :onyx.job-scheduler/greedy}
      new-replica (f old-replica)
      diff (rep-diff old-replica new-replica)]
