diff --git a/test/integration/mesh.test.ts b/test/integration/mesh.test.ts index dc88160..a3c3705 100644 --- a/test/integration/mesh.test.ts +++ b/test/integration/mesh.test.ts @@ -681,6 +681,10 @@ test("the builder is a module the mesh assigns, with a credential the mesh deliv `git -c user.email=lab -c user.name=lab commit -qm built`); await mesh("build /root/built --wait 300s", 420_000); - assert.match(await mesh("builds"), /built/, - "the build was accepted and no build was recorded against the module"); + // Naming the module, and not merely containing its name: `builds` says "nothing has been built + // yet" when there is nothing, and that sentence contains the word this was matching on. + const recorded = await mesh("builds built"); + assert.doesNotMatch(recorded, /nothing has been built/, + `the build was accepted and no build was recorded against the module:\n${recorded}`); + assert.match(recorded, /built/, recorded); });