Skip to content

Commit

Permalink
Fixed events endpoint tests
Browse files Browse the repository at this point in the history
  • Loading branch information
devos50 committed Jul 12, 2016
1 parent 6123137 commit 18b3910
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Tribler/Test/Core/Modules/RestApi/test_events_endpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def verify_delayed_message(results):

events_endpoint = self.session.lm.api_manager.root_endpoint.events_endpoint
self.session.lm.api_manager.root_endpoint.events_endpoint.start_new_query()
results_dict = {"keywords": ["test"], "result_list": [('a',) * 9]}
results_dict = {"keywords": ["test"], "result_list": [('a',) * 10]}
events_endpoint.on_search_results_channels(None, None, None, results_dict)
events_endpoint.on_search_results_torrents(None, None, None, results_dict)
self.messages_to_wait_for = 1
Expand All @@ -79,7 +79,7 @@ def verify_search_results(results):
def send_notifications(_):
self.session.lm.api_manager.root_endpoint.events_endpoint.start_new_query()

results_dict = {"keywords": ["test"], "result_list": [('a',) * 9]}
results_dict = {"keywords": ["test"], "result_list": [('a',) * 10]}
self.session.notifier.notify(SIGNAL_CHANNEL, SIGNAL_ON_SEARCH_RESULTS, None, results_dict)
self.session.notifier.notify(SIGNAL_TORRENT, SIGNAL_ON_SEARCH_RESULTS, None, results_dict)

Expand All @@ -95,7 +95,7 @@ def test_events(self):

def send_notifications(_):
self.session.lm.api_manager.root_endpoint.events_endpoint.start_new_query()
results_dict = {"keywords": ["test"], "result_list": [('a',) * 9]}
results_dict = {"keywords": ["test"], "result_list": [('a',) * 10]}
self.session.notifier.notify(SIGNAL_TORRENT, SIGNAL_ON_SEARCH_RESULTS, None, results_dict)
self.session.notifier.notify(SIGNAL_CHANNEL, SIGNAL_ON_SEARCH_RESULTS, None, results_dict)
self.session.notifier.notify(NTFY_UPGRADER, NTFY_STARTED, None, None)
Expand Down

0 comments on commit 18b3910

Please sign in to comment.