d/patches: add 0002 to revert upstream regression in testsuite.
Louis-Philippe VĂ©ronneau
3 years ago
3 | 3 |
* d/rules: build using leiningen. (Closes: #976415)
|
4 | 4 |
* d/control: add a versioned dependency on tools-analyzer-jvm.
|
5 | 5 |
* d/control: Standards-Version update to 4.5.1. No changes required.
|
|
6 |
* d/patches: add 0002 to revert upstream regression in testsuite.
|
6 | 7 |
|
7 | 8 |
-- Louis-Philippe VĂ©ronneau <pollo@debian.org> Mon, 07 Dec 2020 12:26:22 -0500
|
8 | 9 |
|
|
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"
|
0 | 0 |
0001_Lein_Local.patch
|
|
1 |
0002_Fix_Test_Timing.patch
|