Adoption bed: the machine the predecessor leaves also runs a container with no restart policy

This commit is contained in:
2026-09-22 20:05:21 +02:00
parent 204a226e36
commit 23ca9cadad
+1 -1
View File
@@ -529,7 +529,7 @@ before(async () => {
assert.match(ran.said, /--adopted/, `the refusal does not say how to raise it adopted`);
// And nothing was changed: the predecessor as it was, no table of the mesh's.
const ps = await must(CONTROL, `docker ps --format '{{.Names}}'`);
assert.deepEqual(ps.trim().split("\n").sort(), ["hello-web", "predecessor-registry"], `containers changed:\n${ps}`);
assert.deepEqual(ps.trim().split("\n").sort(), [SERVICE, NO_POLICY, "predecessor-registry"].sort(), `containers changed:\n${ps}`);
assert.match(await must(CONTROL, `ufw status`), /Status: active/);
assert.ok(!(await on(CONTROL, `nft list table inet mesh`)).ok, `a mesh table was loaded`);
return ran.said.split("\n").filter((l) => /in use|^\s+- /.test(l)).join("\n");