File: 0003-Skip-test-assertions-which-hang-in-single-cpu-env.patch

package info (click to toggle)
core-async-clojure 1.3.610-5%2Bdeb11u1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 648 kB
  • sloc: xml: 170; sh: 41; makefile: 20
file content (39 lines) | stat: -rw-r--r-- 1,179 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
From: =?utf-8?b?SsOpcsO0bWUgQ2hhcmFvdWk=?= <jerome@riseup.net>
Date: Tue, 5 Jul 2022 17:56:14 -0400
Subject: Skip test assertions which hang in single-cpu env

This part hangs indefinitely (possible deadlock) when running on a
single-cpu system, or as a part of a single-cpu bound cgroup.

Forwarded: no
---
 src/test/clojure/clojure/core/async_test.clj | 18 +-----------------
 1 file changed, 1 insertion(+), 17 deletions(-)

--- a/src/test/clojure/clojure/core/async_test.clj
+++ b/src/test/clojure/clojure/core/async_test.clj
@@ -288,23 +288,7 @@
       (is (= [0 1 2 3]
              (<!! (a/into [] a))))
       (is (= [0 1 2 3]
-             (<!! (a/into [] b)))))
-
-    ;; ASYNC-127
-    (let [ch (to-chan! [1 2 3])
-          m (mult ch)
-          t-1 (chan)
-          t-2 (chan)
-          t-3 (chan)]
-      (tap m t-1)
-      (tap m t-2)
-      (tap m t-3)
-      (close! t-3)
-      (is (= 1 (a/poll! t-1)))
-      (is (= nil (a/poll! t-1))) ;; t-2 hasn't taken yet
-      (is (= 1 (a/poll! t-2)))
-      (is (= 2 (a/poll! t-1))) ;; now available
-      (is (= nil (a/poll! t-1)))))
+             (<!! (a/into [] b))))))
 
   (testing "mix"
     (let [out (chan)