diff --git a/packages/cli/tests/case2-unit.test.mjs b/packages/cli/tests/case2-unit.test.mjs index 7d3c3932c..7a6382ec3 100644 --- a/packages/cli/tests/case2-unit.test.mjs +++ b/packages/cli/tests/case2-unit.test.mjs @@ -114,9 +114,7 @@ function unit(h, { profile = "library", node = USR_NODE, copy = COPY_A, extra = const r = spawnSync(unitScript, args, { encoding: "utf8", timeout: 30000, - env: { HOME: process.env.HOME, TMPDIR: process.env.TMPDIR, LANG: process.env.LANG, PATH: `${h.bin}:${process.env.PATH}`, CASE2_UNIT_DIR: h.units, CASE2_SYSTEMCTL: join(h.bin, "systemctl"), CASE2_GETENT: join(h.bin, "getent"), - CASE2_BUS_TEMPLATE: BUS_TEMPLATE, CASE2_WEBUI_TEMPLATE: WEBUI_TEMPLATE, - CASE2_PROXY_TEMPLATE: join(REPO,"packages/cli/systemd/mosaic-proxy.service.in"), ...env }, + env: { HOME: process.env.HOME, TMPDIR: process.env.TMPDIR, LANG: process.env.LANG, PATH: `${h.bin}:${process.env.PATH}`, CASE2_UNIT_DIR: h.units, CASE2_SYSTEMCTL: join(h.bin, "systemctl"), CASE2_GETENT: join(h.bin, "getent"), ...env }, }); return { code: r.status, out: r.stdout, err: r.stderr }; } @@ -210,7 +208,10 @@ for(const kind of ['sleep','signals','member']) test(`row253 C4 ${kind} query ha assert.equal(source.split(call).length,2,'tester query budget anchor is unique'); script(observed,instrumentInnerTimer(source.replace(call,call.replace(' 5 7 ',' 5 15 ')),clock)); const capture=cleanupFixture(t,files);const stopGuard=fixtureGuard(t,files,9500,clock); - const start=performance.now(),r=unit(h,{profile:'factory',script:observed}),wall=(performance.now()-start)/1000;capture(); + const start=performance.now(),r=unit(h,{profile:'factory',script:observed,env:{ + CASE2_BUS_TEMPLATE:BUS_TEMPLATE,CASE2_WEBUI_TEMPLATE:WEBUI_TEMPLATE, + CASE2_PROXY_TEMPLATE:join(REPO,'packages/cli/systemd/mosaic-proxy.service.in'), + }}),wall=(performance.now()-start)/1000;capture(); refuses(r,/^case2-unit: tester config query inner-timeout\n$/); const seconds=readProbeSeconds(read(clock)); const [queryPid,querySid]=read(queries).trim().split('\n')[0].trim().split(/\s+/).map(Number);