send startup event right after setup

This commit is contained in:
Victor Shyba 2018-09-21 17:32:02 -03:00 committed by Lex Berezhny
parent 202a957a1a
commit 1c2849235c
3 changed files with 7 additions and 0 deletions

View file

@ -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)

View file

@ -21,6 +21,9 @@ class FakeAnalytics:
def send_server_startup_success(self):
pass
def send_server_startup(self):
pass
def shutdown(self):
pass

View file

@ -84,6 +84,9 @@ class FakeAnalytics:
def send_credits_sent(self):
pass
def send_server_startup(self):
pass
class CommandTestCase(IntegrationTestCase):