Changeset b77884c for .tests/btlib.py


Ignore:
Timestamp:
2021-03-31T12:41:39Z (4 years ago)
Author:
/ <>
Children:
bda5012
Parents:
30b5ca0
Message:

wait longer for register

File:
1 edited

Legend:

Unmodified
Added
Removed
  • .tests/btlib.py

    r30b5ca0 rb77884c  
    160160
    161161def register_test(clis):
     162    ret = False
    162163    clis[1].send_priv_msg("&bitlbee", "register "+clis[1].pwd*2)
    163     time.sleep(0.5)
    164     return (clis[1].receive().find('Account successfully created') != -1)
     164    for a in range(20):
     165        if (clis[1].receive().find('Account successfully created') != -1):
     166            ret = True
     167            break
     168        time.sleep(0.5)
     169    return ret
    165170   
    166171def unregister_test(clis):
Note: See TracChangeset for help on using the changeset viewer.