Skip to content
This repository has been archived by the owner on Feb 15, 2024. It is now read-only.

Failure during registration in remote Napa zone doesn't trigger exception in Hub.register #3

Closed
daiyip opened this issue Jan 9, 2018 · 0 comments

Comments

@daiyip
Copy link
Contributor

daiyip commented Jan 9, 2018

Code

const napa = require('napajs');
const winery = require('winery');

const zone = napa.zone.create('z1');
const host = winery.hub();
host.register('<some-bad-app>', ['app-name']);

Expect:

host.register shall throw.

Actual:

host.register doesn't throw, but program ends because of unhandled exception in asynchronous call to napa.zone.broadcast within host.register.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant