bynk.test.event_not_subscribed
Error A test body's svc.event(e) delivers an event the from Events(E) service does not subscribe to.
svc.event(e) delivers an event through the handler the service subscribes with, so it takes the one event named in the service's from Events(E) header. Delivering a different event would test a path the service does not have. Pass the subscribed event, or test the service that does subscribe to the one you meant.
Example
service OnPlaced from Events(Placed) { … }
// tests/ledger.test.bynklet _ <- OnPlaced.event(Cancelled { id: "o1" }) // ✗ it subscribes to `Placed`let _ <- OnPlaced.event(Placed { id: "o1" }) // ✓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.event_not_subscribedshows the same from the installed toolchain, without a network.