diff options
author | Arthur Zamarin <arthurzam@gentoo.org> | 2021-10-15 09:27:12 +0300 |
---|---|---|
committer | Arthur Zamarin <arthurzam@gentoo.org> | 2021-10-15 09:28:52 +0300 |
commit | d7875a310c1b61eb2a139a567b422eeccedaea9a (patch) | |
tree | f8b7f0b2dccb4344e7f79eb88c9f0efb35a7325f /dev-python/txAMQP | |
parent | dev-util/cvise: Add test-dep on chardet (diff) | |
download | gentoo-d7875a310c1b61eb2a139a567b422eeccedaea9a.tar.gz gentoo-d7875a310c1b61eb2a139a567b422eeccedaea9a.tar.bz2 gentoo-d7875a310c1b61eb2a139a567b422eeccedaea9a.zip |
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>
Diffstat (limited to 'dev-python/txAMQP')
-rw-r--r-- | dev-python/txAMQP/txAMQP-0.8.2.ebuild | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/dev-python/txAMQP/txAMQP-0.8.2.ebuild b/dev-python/txAMQP/txAMQP-0.8.2.ebuild index ee0ea7c19f33..b5cd02193b9a 100644 --- a/dev-python/txAMQP/txAMQP-0.8.2.ebuild +++ b/dev-python/txAMQP/txAMQP-0.8.2.ebuild @@ -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 |