Package list core-async-clojure / 5b31ae1
d/patches: add 0002 to revert upstream regression in testsuite. Louis-Philippe VĂ©ronneau 1 year, 6 months ago
3 changed file(s) with 44 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
33 * d/rules: build using leiningen. (Closes: #976415)
44 * d/control: add a versioned dependency on tools-analyzer-jvm.
55 * d/control: Standards-Version update to 4.5.1. No changes required.
6 * d/patches: add 0002 to revert upstream regression in testsuite.
67
78 -- Louis-Philippe VĂ©ronneau <pollo@debian.org> Mon, 07 Dec 2020 12:26:22 -0500
89
0 Revert upstream commit 094d239e0261263de3799bb6bd1cc33f06833d8b "make test less
1 timing dependent", as it seems to intermittently create the following
2 regression:
3
4 lein test :only clojure.core.async-test/ops-tests
5
6 FAIL in (ops-tests) (async_test.clj:304)
7 mult
8 expected: (= nil (a/poll! t-1))
9 actual: (not (= nil 2))
10
11 lein test :only clojure.core.async-test/ops-tests
12
13 FAIL in (ops-tests) (async_test.clj:305)
14 mult
15 expected: (= 1 (<!! t-2))
16 actual: (not (= 1 2))
17
18 lein test :only clojure.core.async-test/ops-tests
19
20 FAIL in (ops-tests) (async_test.clj:306)
21 mult
22 expected: (= 2 (<!! t-1))
23 actual: (not (= 2 3))
24 Index: core-async-clojure/src/test/clojure/clojure/core/async_test.clj
25 ===================================================================
26 --- core-async-clojure.orig/src/test/clojure/clojure/core/async_test.clj
27 +++ core-async-clojure/src/test/clojure/clojure/core/async_test.clj
28 @@ -300,10 +300,10 @@
29 (tap m t-2)
30 (tap m t-3)
31 (close! t-3)
32 - (is (= 1 (<!! t-1)))
33 + (is (= 1 (a/poll! t-1)))
34 (is (= nil (a/poll! t-1))) ;; t-2 hasn't taken yet
35 - (is (= 1 (<!! t-2)))
36 - (is (= 2 (<!! t-1))) ;; now available
37 + (is (= 1 (a/poll! t-2)))
38 + (is (= 2 (a/poll! t-1))) ;; now available
39 (is (= nil (a/poll! t-1)))))
40
41 (testing "mix"
00 0001_Lein_Local.patch
1 0002_Fix_Test_Timing.patch