Skip to content

Commit

Permalink
Fix pmap test on MinGW
Browse files Browse the repository at this point in the history
It doesn't like sys-pause
  • Loading branch information
shirok committed Nov 22, 2023
1 parent e63d69f commit 3f19f85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/control.scm
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@
(let ([flag #t])
(test* "pmap (fully concurrent, timeout)"
(and flag '(timeout timeout timeout timeout timeout))
(pmap (^n (begin (sys-pause) (set! flag #t) n))
(pmap (^n (begin (sys-sleep 60) (set! flag #t) n))
(iota 5)
:mapper (make-fully-concurrent-mapper 0.2 'timeout))))
]
Expand Down Expand Up @@ -626,7 +626,7 @@
(get-output-string out))
(test* "pump" "a"
(begin (enqueue/wait! mtq #\a)
(sys-nanosleep #e5e6)
(sys-nanosleep #e5e7)
(get-output-string out)))
(test* "pump" "ab"
(begin (enqueue/wait! mtq #\b)
Expand Down

0 comments on commit 3f19f85

Please sign in to comment.