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:
@@ -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:"
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user