carlos / platform Public

tests: match the approved copies policy refusal (#511)

The Luna copy apply (484d4fe2) reworded SR-2-C16, but
TestCopiesApplyToEveryInstance still looked for "overlap deploys".
It now checks for the copiesOverlap constant.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev e117f649163df974eceb081496604ac0f283679d parent 20a40dd
1 file changed, +1 −1
  • internal/console/appcopies_test.go +1 −1

CI failed — run details

Intent

Attributed to this commit: 113 g CO₂e (14,461,052 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on stateless-replicas-4, 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/appcopies_test.go b/internal/console/appcopies_test.go
index 367c39230..d3b2ef893 100644
--- a/internal/console/appcopies_test.go
+++ b/internal/console/appcopies_test.go
@@ -162,7 +162,7 @@ func TestCopiesApplyToEveryInstance(t *testing.T) {
if _, err := appconfig.SetSwapPolicy(context.Background(), fx.rel, fx.sqid, "shop", "hold", 0); err != nil {
t.Fatal(err)
}
- if code, out := copiesPut(t, fx, token, `{"copies":2}`); code != 409 || !strings.Contains(out, "overlap deploys") {
+ if code, out := copiesPut(t, fx, token, `{"copies":2}`); code != 409 || !strings.Contains(out, copiesOverlap) {
t.Fatalf("policy: %d %s", code, out)
}
}