Fix multiple instances (#126)

This commit is contained in:
Vladimir Druzhinin 2023-09-29 13:01:43 +02:00 committed by GitHub
parent 4588cf1af3
commit 88183d0718
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -71,8 +71,8 @@ class AUT:
SquishServer().set_aut_timeout() SquishServer().set_aut_timeout()
if configs.ATTACH_MODE: if configs.ATTACH_MODE:
if local_system.find_process_by_port(self.port): while local_system.find_process_by_port(self.port):
self.port += 100 self.port += 1000
SquishServer().add_attachable_aut(self.aut_id, self.port) SquishServer().add_attachable_aut(self.aut_id, self.port)
command = [ command = [
configs.testpath.SQUISH_DIR / 'bin' / 'startaut', configs.testpath.SQUISH_DIR / 'bin' / 'startaut',

View File

@ -76,7 +76,7 @@ class CreateCommunityPopup(BasePopup):
def _open_logo_file_dialog(self, attempt: int = 2): def _open_logo_file_dialog(self, attempt: int = 2):
self._add_logo_button.click() self._add_logo_button.click()
try: try:
return OpenFileDialog().wait_until_appears().prepare() return OpenFileDialog().wait_until_appears()
except LookupError as err: except LookupError as err:
if attempt: if attempt:
_logger.debug(err) _logger.debug(err)