From c99295c21d845a56fac55e5e6cdaac0a3ec7c02b Mon Sep 17 00:00:00 2001 From: jochen Date: Sun, 22 Nov 2026 00:52:02 +0100 Subject: [PATCH] The starved setup's line lives in the root package MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- go/setupstarved.go | 6 ++++++ go/testbus/testbus.go | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 go/setupstarved.go diff --git a/go/setupstarved.go b/go/setupstarved.go new file mode 100644 index 00000000..1aa7702e --- /dev/null +++ b/go/setupstarved.go @@ -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:" diff --git a/go/testbus/testbus.go b/go/testbus/testbus.go index a41b12e4..34142905 100644 --- a/go/testbus/testbus.go +++ b/go/testbus/testbus.go @@ -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"