Skip to content

Commit

Permalink
Fix broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
kozlovsky committed Sep 6, 2022
1 parent 8437d84 commit 5b627dd
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/tribler/gui/tests/test_core_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,9 @@ def test_decode_raw_core_output(core_manager):


def test_format_error_message():
actual = CoreManager.format_error_message(exit_code=errno.ENOENT, exit_status=1, last_core_output='last\noutput')
actual = CoreManager.format_error_message(exit_code=errno.ENOENT, exit_status=1)
expected = '''The Tribler core has unexpectedly finished with exit code 2 and status: 1.
Error message: No such file or directory
Last core output:
> last
> output'''
Error message: No such file or directory'''

assert actual == expected

0 comments on commit 5b627dd

Please sign in to comment.