Skip to content

Commit

Permalink
Merge pull request #38 from atlarge-research/fzovpec/10-04-24/Miscell…
Browse files Browse the repository at this point in the history
…aneous-Test-Fixes

Miscellaneous Fixes
  • Loading branch information
fzovpec authored Apr 10, 2024
2 parents b8e43db + 6db6120 commit 993045e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions chat_client_check/check.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,9 +378,9 @@ def execute(self, disable_colors):

except TypeError as e: # originates from pexpect .before if script terminates. except for more readable error message
if not disable_colors:
print(f'\033[91m[ x ] \033[30m{self.test_id}. {self.test_msg} \033[91mFailed! \033[30m The list of tags is {tags_string} \nYour client did not start or connected to a wrong server port \033[0m')
print(f'\033[91m[ x ] \033[30m{self.test_id}. {self.test_msg} \033[91mFailed! \033[30m The list of tags is {tags_string} \nYour client did not start, connected to a wrong server port or did not keep running\033[0m')
else:
print(f'[ x ] {self.test_id}. {self.test_msg} Failed! The list of tags is {tags_string} \nYour client did not start or connected to a wrong server port')
print(f'[ x ] {self.test_id}. {self.test_msg} Failed! The list of tags is {tags_string} \nYour client did not start, connected to a wrong server port or did not keep running')

success = False

Expand Down
6 changes: 3 additions & 3 deletions server_check/check.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,9 +340,9 @@ def execute(self, disable_colors=False):
success = False

if not disable_colors:
print(f'\033[91m[ x ] \033[30m{self.test_id}. {self.test_msg} \033[91mFailed! \033[30m The list of tags is {tags_string} \nYour server did not start \033[0m')
print(f'\033[91m[ x ] \033[30m{self.test_id}. {self.test_msg} \033[91mFailed! \033[30m The list of tags is {tags_string} \nYour server did not start or did not keep running\033[0m')
else:
print(f'[ x ] {self.test_id}. {self.test_msg} Failed! The list of tags is {tags_string} \nYour server did not start')
print(f'[ x ] {self.test_id}. {self.test_msg} Failed! The list of tags is {tags_string} \nYour server did not start or did not keep running')

except Exception as e:
try:
Expand All @@ -363,7 +363,7 @@ def execute(self, disable_colors=False):
return success

test_cases = [
TestCase(start_script, "chat_server_001", "Server starts successfuly"),
TestCase(start_script, "chat_server_001", "Server starts successfuly", ['TR5']),
TestCase(log_in, "chat_server_002", "Log in with unique name and expect success", ['PR2', 'PR3']),
TestCase(log_in_duplicate, "chat_server_003", "Log in with duplicate name and expect failure", ['PR5']),
TestCase(list_users, "chat_server_004", "Log in, list users and expect success", ['PR8', 'PR9']),
Expand Down

0 comments on commit 993045e

Please sign in to comment.