mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user