From 58d0ebe14605e30322f15a21fd1fd6a333a27dc2 Mon Sep 17 00:00:00 2001 From: drew2a Date: Tue, 24 Nov 2020 16:57:08 +0100 Subject: [PATCH] Fix the test --- .../tribler_core/restapi/tests/test_state_endpoint.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tribler-core/tribler_core/restapi/tests/test_state_endpoint.py b/src/tribler-core/tribler_core/restapi/tests/test_state_endpoint.py index 17d8c498000..e97e39a2750 100644 --- a/src/tribler-core/tribler_core/restapi/tests/test_state_endpoint.py +++ b/src/tribler-core/tribler_core/restapi/tests/test_state_endpoint.py @@ -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)