diff --git a/synapse/lib/spawn.py b/synapse/lib/spawn.py index 117a77401a..81db9122e6 100644 --- a/synapse/lib/spawn.py +++ b/synapse/lib/spawn.py @@ -327,6 +327,7 @@ async def __anit__(self, spawninfo): self.svcsbyiden = {} self.svcsbyname = {} + self.svcsbysvcname = {} self.stormcmds = {} self.storm_cmd_ctors = {} diff --git a/synapse/tests/test_lib_spawn.py b/synapse/tests/test_lib_spawn.py index 12e3f57f95..23dc7a1be2 100644 --- a/synapse/tests/test_lib_spawn.py +++ b/synapse/tests/test_lib_spawn.py @@ -539,6 +539,10 @@ async def test_stormpkg(self): async with core.getLocalProxy() as prox: opts = {'spawn': True} + # Ensure the spawncore loaded the service + coro = prox.storm('$lib.service.wait(real)', opts).list() + msgs = await asyncio.wait_for(coro, 12) + msgs = await prox.storm('help', opts=opts).list() self.stormIsInPrint('foobar', msgs)