Skip to content

Commit a1cc51d

Browse files
committed
avoiding flow tests when CLJ earlier than 1.11.0
1 parent 4f8621a commit a1cc51d

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

src/test/clojure/clojure/core/async/flow_test.clj

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,17 @@
77
;; You must not remove this notice, or any other, from this software.
88

99
(ns clojure.core.async.flow-test
10-
(:require [clojure.test :refer :all]
11-
[clojure.core.async.flow :as flow]))
10+
(:require [clojure.test :refer :all]))
1211

13-
(deftest test-futurize
12+
(defmacro deftest-against
13+
[ver name & body]
14+
(when (clojure.core.async.impl.dispatch/at-least-clojure-version? ver)
15+
`(deftest ~name ~@body)))
16+
17+
(when (clojure.core.async.impl.dispatch/at-least-clojure-version? [1 11 0])
18+
(require '[clojure.core.async.flow :as flow]))
19+
20+
(deftest-against [1 11 0] test-futurize
1421
(testing ""
1522
(let [es (reify java.util.concurrent.ExecutorService
1623
(^java.util.concurrent.Future submit [_ ^Callable f]

0 commit comments

Comments
 (0)