[Asterisk-code-review] asterisk: allow for 2 seconds before cli connect (testsuite[development/16/python3])
Michael Bradeen
asteriskteam at digium.com
Tue Aug 9 11:24:01 CDT 2022
Michael Bradeen has uploaded this change for review. ( https://gerrit.asterisk.org/c/testsuite/+/18895 )
Change subject: asterisk: allow for 2 seconds before cli connect
......................................................................
asterisk: allow for 2 seconds before cli connect
ASTERISK-26826
Change-Id: I28a00992e54f8515fef15f77b877e2dff7767830
---
M lib/python/asterisk/asterisk.py
1 file changed, 4 insertions(+), 3 deletions(-)
git pull ssh://gerrit.asterisk.org:29418/testsuite refs/changes/95/18895/1
diff --git a/lib/python/asterisk/asterisk.py b/lib/python/asterisk/asterisk.py
index ff96dad..1f049fd 100644
--- a/lib/python/asterisk/asterisk.py
+++ b/lib/python/asterisk/asterisk.py
@@ -465,7 +465,7 @@
cmd[0],
cmd, env=os.environ)
# Begin the wait fully booted cycle
- reactor.callLater(1, __execute_wait_fully_booted)
+ reactor.callLater(2, __execute_wait_fully_booted)
def __execute_wait_fully_booted():
"""Send the CLI command waitfullybooted"""
@@ -496,8 +496,9 @@
LOGGER.error(msg)
self._start_deferred.errback(Exception(msg))
else:
- msg = "Asterisk core waitfullybooted failed, attempting again"
- LOGGER.debug(msg)
+ LOGGER.debug("Asterisk core waitfullybooted failed " +
+ "with output '%s', attempting again..." %
+ cli_command.value.err.decode('utf-8'))
reactor.callLater(1, __execute_wait_fully_booted)
return cli_command
--
To view, visit https://gerrit.asterisk.org/c/testsuite/+/18895
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings
Gerrit-Project: testsuite
Gerrit-Branch: development/16/python3
Gerrit-Change-Id: I28a00992e54f8515fef15f77b877e2dff7767830
Gerrit-Change-Number: 18895
Gerrit-PatchSet: 1
Gerrit-Owner: Michael Bradeen <mbradeen at sangoma.com>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20220809/289519bb/attachment-0001.html>
More information about the asterisk-code-review
mailing list