bynk.suite.env_binding_clash
Error A system-tier suite's or case's env names a binding a participant's Worker already declares (a Service Binding, KV namespace, or Durable Object namespace), or a key the test harness sets on it (a call-edge key, a Foreign caller's secret), so the entry would clash with it on the Worker's env.
A system suite runs the participants as Workers, and an env entry is put on each Worker's env, beside the bindings that Worker already has: a Service Binding, a KV namespace, a Durable Object namespace, and the keys the test harness sets itself, such as a call edge's key or a foreign caller's secret. An entry with one of those names would replace the binding, so the compiler refuses it. Rename the variable. In this example shop.ledger consumes Kv, so its Worker already has a binding named KV.
Example
consumes bynk.cloudflare { Kv } // `shop.ledger` has a binding named `KV`
suite shop.ledger as system { case "an env entry may not replace a binding" { env { KV = "not a namespace" } // ✗ `KV` is a binding of the Worker
env { REGION = "eu" } // ✓ a name nothing else holdsIn the Book
See also
- The grammar rule it governs:
env_clause. - Every code in its category, Suites and cases, on the diagnostic index.
bynk explain bynk.suite.env_binding_clashshows the same from the installed toolchain, without a network.