bynk.test.principal_required
Error A test drives an identity-carrying handler, or one guarded by an actor sum, with no call-site by <Actor>.
A handler declared by u: User runs as a verified actor, and a case has no real caller, so it must say who is calling with a call-site by. The same applies to a handler guarded by an actor sum: name one of its members. Append by <Actor>(<identity>) to the call.
Example
let r <- api.GET("/items") // ✗ who is calling?let r <- api.GET("/items") by User("ada") // ✓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.principal_requiredshows the same from the installed toolchain, without a network.