dev-python/txAMQP: fix timeout issue in testing

My previous variant, of using 10 second timeout, wasn't long enough
for tinderbox. Changed to use a while loop checking when
localhost:5672 port is openned, and only then advance the testing.

Closes: https://bugs.gentoo.org/818226
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
This commit is contained in:
Arthur Zamarin
2021-10-15 09:27:12 +03:00
parent 56288d9b29
commit d7875a310c

View File

@@ -57,7 +57,10 @@ src_test() {
/usr/libexec/rabbitmq/rabbitmq-server -p 5672:5672 &
einfo "Waiting for rabbitmq to fully load"
sleep 10 # Maybe need to increase timeout
while ! { echo >/dev/tcp/localhost/5672 ; } &> /dev/null; do
sleep 1
done
einfo "rabbitmq is ready"
distutils-r1_src_test