Skip to content
Playground(another site)

bynk.test.call_needs_in_process

Error A system-tier case calls an on call service with svc.call(…); an on call service is internal to a deployment and has no public route for a system case to drive, so the case drives an http route that reaches it, or calls it at unit or integration.

A service with an on call handler is internal to a deployment: it has no public route, and a system case can only send requests through the Worker's front door. So svc.call(…) is refused in one. Call it at unit or integration, or drive an http route that reaches it. For the event equivalent, see bynk.test.event_needs_in_process.

Example

demo/api.bynk
service save { … }
// tests/api.test.bynk
case "a key is measured" as system { // ✗ `save` has no public route
case "a key is measured" { // ✓
let n <- save.call("abc")
}

In the Book

See also

  • The grammar rule it governs: case.
  • Every code in its category, Tests, on the diagnostic index.
  • bynk explain bynk.test.call_needs_in_process shows the same from the installed toolchain, without a network.