Changeset a18cf1b for .tests/btlib.py


Ignore:
Timestamp:
2021-03-29T12:18:57Z (4 years ago)
Author:
/ <>
Children:
cb80802
Parents:
d347470
Message:

prosody restart fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • .tests/btlib.py

    rd347470 ra18cf1b  
    2828
    2929    def connect(self):
    30         try:
    31             self.sck.connect(('127.0.0.1', 6667))
    32         except:
     30        connected = False
     31        for x in range(5):
     32            try:
     33                self.sck.connect(('127.0.0.1', 6667))
     34                connected = True
     35                break
     36            except:
     37                time.sleep(1)
     38
     39        if not connected:
    3340            print("IRC connection failed for " + self.nick)
    3441            sys.exit(1)
     
    8693
    8794def perform_test(test_function):
    88     time.sleep(5)
    8995    clis = []
    9096    clis += [IrcClient('test1', 'asd')]
Note: See TracChangeset for help on using the changeset viewer.