File: longer_async_work_timeout.patch

package info (click to toggle)
lua-luv 1.48.0-2-4
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,040 kB
  • sloc: ansic: 6,565; makefile: 72; sh: 33
file content (22 lines) | stat: -rw-r--r-- 851 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Subject: Increase timeout of "threadpool with async" test
 On arm64 the 10 ms has been too quick most of the time, causing the test to
 teardown before the async callback has been called and therefore fail the
 test. Bump the sleep up to 100 ms to give more time.
Author: James McCoy <jamessan@debian.org>
Last-Update: 2024-08-31
Bug-Upstream: https://github.com/luvit/luv/issues/715
Forwarded: not-needed
---
diff --git i/tests/test-work.lua w/tests/test-work.lua
index 0611b57..f635a65 100644
--- i/tests/test-work.lua
+++ w/tests/test-work.lua
@@ -75,7 +75,7 @@ return require('lib/tap')(function (test)
           if a then
             assert(uv.async_send(a,'a',true,250)==0)
           end
-          uv.sleep(10)
+          uv.sleep(100)
           return n, n*n, t, s
       end,
       function(n,r,id, s)       --after work, in loop thread