Skip to content

Commit

Permalink
Merge pull request #358 from mattrjacobs/fix-clojure-unit-tests-non-d…
Browse files Browse the repository at this point in the history
…estructive

Fixed Clojure unit tests that failed with RxJava 1.0
  • Loading branch information
mattrjacobs committed Dec 15, 2014
2 parents 8b0b71f + d266f86 commit 36048f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -634,10 +634,10 @@
(extend-protocol ObserveLater
HystrixCommand
(observe-later* [this] (.toObservable this))
(observe-later-on* [this scheduler] (.toObservable this scheduler))
(observe-later-on* [this scheduler] (.observeOn (.toObservable this) scheduler))
HystrixCollapser
(observe-later* [this] (.toObservable this))
(observe-later-on* [this scheduler] (.toObservable this scheduler)))
(observe-later-on* [this scheduler] (.observeOne (.toObservable this) scheduler)))

(defn observe-later
"Same as #'com.netflix.hystrix.core/observe, but command execution does not begin until the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@

(defn ^:private wait-for-observable
[^rx.Observable o]
(-> o .toBlockingObservable .single))
(-> o .toBlocking .single))

(deftest test-observe
(let [base-def {:type :command
Expand Down

0 comments on commit 36048f5

Please sign in to comment.