summaryrefslogtreecommitdiff
path: root/test/tests
diff options
context:
space:
mode:
authorFelix Lechner <felix.lechner@lease-up.com>2017-09-02 09:57:43 -0300
committerDavid Bremner <david@tethera.net>2018-10-31 09:18:06 -0300
commitf7a68e78f41220b003ad74fe27f7f8769cbf6c2b (patch)
tree4d4cee92f5be473d56f073ccc52a22ef7c644dd1 /test/tests
parent73f77f6fe61640a3e420fb375d6f58f2d0052521 (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
Diffstat (limited to 'test/tests')
-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