Skip to content

Commit

Permalink
Fix the test
Browse files Browse the repository at this point in the history
  • Loading branch information
drew2a committed Nov 24, 2020
1 parent 9cc33bb commit 58d0ebe
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ async def test_get_state(enable_api, session):
"""
Testing whether the API returns a correct state when requested
"""
session.api_manager.root_endpoint.endpoints['/state'].on_tribler_exception("abcd")
session.api_manager.root_endpoint.endpoints['/state'].on_tribler_exception("abcd", None)
expected_json = {"state": "EXCEPTION", "last_exception": "abcd", "readable_state": "Started"}
await do_request(session, 'state', expected_code=200, expected_json=expected_json)

0 comments on commit 58d0ebe

Please sign in to comment.