Skip to content

Commit

Permalink
This works, duh
Browse files Browse the repository at this point in the history
  • Loading branch information
jcrossley3 committed Mar 16, 2015
1 parent 5d44a6d commit a035fe0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions integration-tests/test-clustering/immutant/cluster_test.clj
Expand Up @@ -67,10 +67,10 @@
;; ;; across restarts
;; (is (apply < (map :count @responses)))))

;; (deftest publish-here-receive-there
;; (let [q1 (msg/queue "/queue/cluster" :context @ctx1)
;; q2 (msg/queue "/queue/cluster" :context @ctx2)]
;; (dotimes [i 10]
;; (msg/publish q1 i))
;; (is (= (range 10) (sort (repeatedly 10 #(msg/receive q2)))))))
(deftest publish-here-receive-there
(let [q1 (msg/queue "/queue/cluster" :context (msg/context (assoc opts :port (messaging-port "server-one"))))
q2 (msg/queue "/queue/cluster" :context (msg/context (assoc opts :port (messaging-port "server-two"))))]
(dotimes [i 10]
(msg/publish q1 i))
(is (= (range 10) (sort (repeatedly 10 #(msg/receive q2)))))))

0 comments on commit a035fe0

Please sign in to comment.