Skip to content

Commit

Permalink
resolve the metrics_test hang problem with d2r's patch
Browse files Browse the repository at this point in the history
  • Loading branch information
JuDasheng committed Jul 1, 2014
1 parent b004e06 commit 573c42a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion storm-core/src/clj/backtype/storm/testing.clj
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,10 @@
(log-error t# "Error in cluster")
(throw t#))
(finally
(kill-local-storm-cluster ~cluster-sym)))))
(let [keep-waiting?# (atom true)]
(future (while @keep-waiting?# (simulate-wait ~cluster-sym)))
(kill-local-storm-cluster ~cluster-sym)
(reset! keep-waiting?# false))))))

(defmacro with-simulated-time-local-cluster
[& args]
Expand Down

0 comments on commit 573c42a

Please sign in to comment.