The starved setup's line lives in the root package

stdio.SetupStarved holds "mesh: setup starved:" so the delivery SDK reads
it without importing testbus; testbus.SetupStarved names it.

Builds: design 47 H2 §800; H-A-368, H-A-399
This commit is contained in:
2026-11-22 00:52:02 +01:00
parent 5dd0d66acb
commit c99295c21d
2 changed files with 9 additions and 1 deletions
+6
View File
@@ -0,0 +1,6 @@
package stdio
// SetupStarved opens the one line a test prints when its setup wait on the bus passed the setup bound (design 47 H2
// §800, H-A-368): a build module reads it in the test output, never an assertion's words, and runs the level again. It
// lives in the root package so the delivery SDK reads it without importing the test helpers (H-A-399).
const SetupStarved = "mesh: setup starved:"
+3 -1
View File
@@ -26,6 +26,8 @@ import (
"time"
"github.com/nats-io/nats-server/v2/server"
stdio "git.novox.be/novox/mesh-sdk/go"
)
// Version is the release of the server the tests run.
@@ -78,7 +80,7 @@ func Start(t testing.TB) *server.Server {
// SetupStarved opens the one line a test prints when its setup wait on the bus passed the setup bound (design 47 H2
// §800, H-A-368): a build module reads it in the test output, never an assertion's words, and runs the level again.
const SetupStarved = "mesh: setup starved:"
const SetupStarved = stdio.SetupStarved
// levelBoundWord is the environment word a build step gives each test level its bound in, as a duration ("10m").
const levelBoundWord = "MESH_TEST_LEVEL_BOUND"