console: gate test's below-floor console is a release (#1060)
TestGateNeedsEveryDeploymentBoxCurrent stood the console below the label floor with build "dev". Since #1060 a build that is not a release answers SR-6-C06 with no Retry-After rather than C39, so the case failed deterministically. Use release.StatelessReplicasFloor (v0.35.0), a release below v0.35.4, as TestCreateRefusesBelowLabelFloor does; the not-a-release case stays covered there.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+4
−2
internal/console/fleetbox_test.go+4 −2
CI passed — run details
Intent
Attributed to this commit: 34.5 g CO₂e (4,409,602 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on sr-followups, never backward from it. A turn that produced more than one commit books all of its tokens to the last one, and a concurrent session on this branch can add to the same figure. Some of it was priced using the shared default rate, because no model-specific factor row exists yet for at least one model involved. The Carbon view has the repo total, which is never derived from this attribution.
diff --git a/internal/console/fleetbox_test.go b/internal/console/fleetbox_test.go| index ec9486d95..8e37993db 100644 |
| --- a/internal/console/fleetbox_test.go |
| +++ b/internal/console/fleetbox_test.go |
| @@ -208,8 +208,10 @@ func TestGateNeedsEveryDeploymentBoxCurrent(t *testing.T) { |
| wantCreateUnavailable(t, fx, token, "c.example.com") |
| piBeat(t, fx, "pi-2", true, time.Now(), release.FleetRecordLabelFloor) |
| - // The console itself below the floor. |
| - fx.srv.consoleBuild = "dev" |
| + // The console itself below the floor: a release before it. A build |
| + // that is not a release (#1060) answers SR-6-C06 instead, covered by |
| + // TestCreateRefusesBelowLabelFloor. |
| + fx.srv.consoleBuild = release.StatelessReplicasFloor |
| wantCreateUnavailable(t, fx, token, "d.example.com") |
| fx.srv.consoleBuild = release.FleetRecordLabelFloor |