X-Git-Url: http://average.org/gitweb/?a=blobdiff_plain;f=test%2Fcommon.py;h=7a863106309e61072511641a7a975f5e344abbdf;hb=a4e4e193173d24f0f1b2020a61cee432418d5284;hp=17fde963e448ac8a76d2ebd3d25742d91905bd8f;hpb=9bf81b19b7b790bc2115ac08dc1f3c112aede976;p=loctrkd.git diff --git a/test/common.py b/test/common.py index 17fde96..7a86310 100644 --- a/test/common.py +++ b/test/common.py @@ -23,6 +23,8 @@ from time import sleep from typing import Optional from unittest import TestCase +from loctrkd.common import init_protocols + NUMPORTS = 3 @@ -49,6 +51,7 @@ class TestWithServers(TestCase): } self.conf["storage"] = { "dbfn": self.tmpfilebase + ".storage.sqlite", + "events": "yes", } self.conf["opencellid"] = { "dbfn": self.tmpfilebase + ".opencellid.sqlite", @@ -56,10 +59,12 @@ class TestWithServers(TestCase): } self.conf["rectifier"] = { "lookaside": "opencellid", + "publishurl": "ipc://" + self.tmpfilebase + ".rect.pub", } self.conf["wsgateway"] = { "port": str(freeports[1]), } + init_protocols(self.conf) self.children = [] for srvname in args: if srvname == "collector": @@ -101,6 +106,7 @@ class TestWithServers(TestCase): for sfx in ( "", ".pub", + ".rect.pub", ".pul", ".storage.sqlite", ".opencellid.sqlite",