summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Lechner <felix.lechner@lease-up.com>2017-09-02 09:57:43 -0300
committerDavid Bremner <bremner@debian.org>2018-03-16 22:48:17 -0300
commit5628104baf12d312d83d097d01d77e59a8d7024f (patch)
treebad2fda4ac544b1ccfd03d0e8a9358f66798c505
parente3a3f0c380ff856129fd7e11bd4872f8f09dad2c (diff)
Remove race conditions from tests
Testing the qmqp protocol fails because the testing server cannot acquire the lock. This is solved by waiting for the previous server to exit gracefully and clear the lock. Similarly, wait before removing temporary directories. Forwarded: no Last-Update: 2017-10-07 Gbp-Pq: Name 0001-Remove-race-conditions-from-tests.patch
-rw-r--r--test/tests/protocols1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/tests/protocols b/test/tests/protocols
index 8f79737..f6be2c8 100644
--- a/test/tests/protocols
+++ b/test/tests/protocols
@@ -64,6 +64,7 @@ do
echo "Testing protocol failure with $p."
error 11 protocol $p -p $port --host=localhost 3<testmail
stop server
+ wait
done
rm -f testmail