Misc (re #2504): Update pjsua test: registration test sometimes fails when the test script fails to connect fast enough to pjsua via CLI telnet (registration completed before the telnet connection established).
This commit is contained in:
parent
004f7f7d8c
commit
b1e3966f1e
|
@ -357,6 +357,7 @@ for p in script.test.process:
|
|||
try:
|
||||
# Wait until registration completes
|
||||
if p.inst_param.have_reg:
|
||||
p.send("rr")
|
||||
p.expect(p.inst_param.uri+".*registration success")
|
||||
# Synchronize stdout
|
||||
if not p.use_telnet:
|
||||
|
@ -380,7 +381,7 @@ if script.test.test_func != None:
|
|||
# Shutdown all instances
|
||||
for p in script.test.process:
|
||||
# Unregister if we have_reg to make sure that next tests
|
||||
# won't wail
|
||||
# won't fail
|
||||
if p.inst_param.have_reg:
|
||||
p.send("ru")
|
||||
p.expect(p.inst_param.uri+".*unregistration success")
|
||||
|
|
Loading…
Reference in New Issue