aboutsummaryrefslogtreecommitdiffstats
path: root/debian/patches/tests-t-Increase-timeout-from-2-to-5s-after-backgrou.patch
blob: 76b678bda48361aeed31d673fe3795aac09f4d49 (plain)
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
From a7517e35cf0c835fcb68db56d8634fab9b4d5f0d Mon Sep 17 00:00:00 2001
From: Guilhem Moulin <guilhem@fripost.org>
Date: Sun, 15 Dec 2019 03:35:51 +0100
Subject: [PATCH 1/2] tests/*/t: Increase timeout from 2 to 5s after background
 syncs.

---
 tests/condstore/t       | 2 +-
 tests/pullimap/t        | 2 +-
 tests/sync-live-multi/t | 2 +-
 tests/sync-live/t       | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/tests/condstore/t b/tests/condstore/t
index d4da50f..1963b2b 100644
--- a/tests/condstore/t
+++ b/tests/condstore/t
@@ -31,7 +31,7 @@ while [ $(date +%s) -le $timer ]; do
     doveadm -u "$u" flags "$a" "$f" mailbox "INBOX" "${seqs//$'\n'/,}"
     sleep "0.0$(shuf -n1 -i10-99)" # 10 to 99ms
 done
-sleep 2
+sleep 5
 
 ptree_abort $PID
 trap - EXIT INT TERM
diff --git a/tests/pullimap/t b/tests/pullimap/t
index 79da3e0..115432d 100644
--- a/tests/pullimap/t
+++ b/tests/pullimap/t
@@ -123,7 +123,7 @@ while [ $(date +%s) -le $timer ]; do
     sleep "$s"
 done
 
-sleep 2
+sleep 5
 ptree_abort $PID
 trap - EXIT INT TERM
 
diff --git a/tests/sync-live-multi/t b/tests/sync-live-multi/t
index 9b129ec..ba7f326 100644
--- a/tests/sync-live-multi/t
+++ b/tests/sync-live-multi/t
@@ -96,7 +96,7 @@ done
 # wait a little longer so interimap has time to run loop() again and
 # synchronize outstanding changes, then terminate the processes we
 # started above
-sleep 2
+sleep 5
 
 ptree_abort ${PID[@]}
 trap - EXIT INT TERM
diff --git a/tests/sync-live/t b/tests/sync-live/t
index 19d1e08..5f5b291 100644
--- a/tests/sync-live/t
+++ b/tests/sync-live/t
@@ -65,7 +65,7 @@ done
 # wait a little longer so interimap has time to run loop() again and
 # synchronize outstanding changes, then terminate the process we started
 # above
-sleep 2
+sleep 5
 
 ptree_abort $PID
 trap - EXIT INT TERM
-- 
2.24.0