be0c12
From de7125dcfe6d6c8af05262ab786f9fe7cbf15113 Mon Sep 17 00:00:00 2001
be0c12
From: Frantisek Sumsal <frantisek@sumsal.cz>
be0c12
Date: Wed, 15 Dec 2021 12:15:19 +0100
be0c12
Subject: [PATCH] test: make TEST-47 less racy
be0c12
be0c12
Based on:
be0c12
  - 2e7090e94d0c8b31d418555ab2f6a9b75318f6a4
be0c12
  - e00e2e0b50bbd120290572c8d1242703fb98b34e
be0c12
  - 197298ff9fc930de450330095cc5b67d165d0801
be0c12
be0c12
Related: #2017033
be0c12
---
be0c12
 test/TEST-47-ISSUE-14566/testsuite.sh | 2 ++
be0c12
 1 file changed, 2 insertions(+)
be0c12
be0c12
diff --git a/test/TEST-47-ISSUE-14566/testsuite.sh b/test/TEST-47-ISSUE-14566/testsuite.sh
be0c12
index d917cf52ff..b12b50e96c 100755
be0c12
--- a/test/TEST-47-ISSUE-14566/testsuite.sh
be0c12
+++ b/test/TEST-47-ISSUE-14566/testsuite.sh
be0c12
@@ -6,11 +6,13 @@ systemd-analyze log-level debug
be0c12
 systemd-analyze log-target console
be0c12
 
be0c12
 systemctl start issue_14566_test
be0c12
+sleep 4
be0c12
 systemctl status issue_14566_test
be0c12
 
be0c12
 leaked_pid=$(cat /leakedtestpid)
be0c12
 
be0c12
 systemctl stop issue_14566_test
be0c12
+sleep 4
be0c12
 
be0c12
 # Leaked PID will still be around if we're buggy.
be0c12
 # I personally prefer to see 42.