From 1c2849235ca29c36650bc526f9b149671ff63e64 Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Fri, 21 Sep 2018 17:32:02 -0300 Subject: [PATCH] send startup event right after setup --- lbrynet/daemon/auth/server.py | 1 + tests/integration/cli/test_cli.py | 3 +++ tests/integration/wallet/test_commands.py | 3 +++ 3 files changed, 7 insertions(+) diff --git a/lbrynet/daemon/auth/server.py b/lbrynet/daemon/auth/server.py index c1aaf26a3..259baf9fd 100644 --- a/lbrynet/daemon/auth/server.py +++ b/lbrynet/daemon/auth/server.py @@ -235,6 +235,7 @@ class AuthJSONRPCServer(AuthorizedBase): reactor.addSystemEventTrigger('before', 'shutdown', self._shutdown) if not self.analytics_manager.is_started: self.analytics_manager.start() + self.analytics_manager.send_server_startup() for lc_name, lc_time in self._looping_call_times.items(): self.looping_call_manager.start(lc_name, lc_time) diff --git a/tests/integration/cli/test_cli.py b/tests/integration/cli/test_cli.py index dfbc58d40..85caf0163 100644 --- a/tests/integration/cli/test_cli.py +++ b/tests/integration/cli/test_cli.py @@ -21,6 +21,9 @@ class FakeAnalytics: def send_server_startup_success(self): pass + def send_server_startup(self): + pass + def shutdown(self): pass diff --git a/tests/integration/wallet/test_commands.py b/tests/integration/wallet/test_commands.py index a38c69af2..13f1fbd07 100644 --- a/tests/integration/wallet/test_commands.py +++ b/tests/integration/wallet/test_commands.py @@ -84,6 +84,9 @@ class FakeAnalytics: def send_credits_sent(self): pass + def send_server_startup(self): + pass + class CommandTestCase(IntegrationTestCase):