sim: the one-box identity tests pin boxesPerRegion to 1, so their traces are the one-box shape's whatever HOSTLIFE_BOXES says (final review minor 5)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+6
−0
internal/sim/hostlife/onebox_identity_test.go+6 −0
diff --git a/internal/sim/hostlife/onebox_identity_test.go b/internal/sim/hostlife/onebox_identity_test.go| index a35af4a66..38783cd88 100644 |
| --- a/internal/sim/hostlife/onebox_identity_test.go |
| +++ b/internal/sim/hostlife/onebox_identity_test.go |
| @@ -18,6 +18,9 @@ import ( |
| // set, so the trace at the baseline and after each task can be compared |
| // byte for byte; the one-box shape must not change it. |
| func TestOneBoxCreateInterruptionTrace(t *testing.T) { |
| + saved := boxesPerRegion |
| + boxesPerRegion = 1 // the one-box shape, whatever HOSTLIFE_BOXES says (final review minor 5) |
| + defer func() { boxesPerRegion = saved }() |
| var out []string |
| for _, how := range []string{"restarted", "replaced"} { |
| w := newWitness() |
| @@ -58,6 +61,9 @@ func TestOneBoxSeedTraces(t *testing.T) { |
| if p == "" { |
| t.Skip("HOSTLIFE_TRACE_OUT_SEEDS is not set") |
| } |
| + saved := boxesPerRegion |
| + boxesPerRegion = 1 // the one-box shape, whatever HOSTLIFE_BOXES says (final review minor 5) |
| + defer func() { boxesPerRegion = saved }() |
| mask := regexp.MustCompile(`admission=\[[^\]]*\]`) |
| var out []string |
| for seed := int64(1); seed <= int64(seedsFromEnv(300)); seed++ { // the gate's seeds, 1..n (rev 11, Astra round 8) |