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
service save { … }
// tests/api.test.bynkcase "a key is measured" as system { // ✗ `save` has no public routecase "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_processshows the same from the installed toolchain, without a network.