Changeset a18cf1b


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

prosody restart fix

Location:
.tests
Files:
1 added
2 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')]
  • .tests/setup_prosody.sh

    rd347470 ra18cf1b  
    33set -e
    44
    5 sudo prosodyctl start
     5sudo /etc/init.d/prosody start
    66sudo prosodyctl register test1 localhost asd
    77sudo prosodyctl register test2 localhost asd
Note: See TracChangeset for help on using the changeset viewer.