Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

attempt to load middleware listed in the config that may be in node m… #80

Merged
merged 2 commits into from
Nov 8, 2016

Conversation

ryshep111
Copy link

…odules

Tested by listing a node module in the middleware config. That module was loaded properly. Anything that was already loaded in the bootstrapping process will be unaffected.

@ryshep111
Copy link
Author

If the service loader cannot find the middleware, an error will be thrown and the server start will fail. This does not differ from the previous behavior because an error would have been thrown by initConsumers() if it got to that point.

@seanpk seanpk self-assigned this Nov 7, 2016
@seanpk
Copy link
Member

seanpk commented Nov 7, 2016

Looks good, but let's also add a test case to protect us from future regression.

});
});

describe.only('SERVER11 - middleware should get loaded from node modules', function () {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should the .only() be removed?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, good catch.

@seanpk seanpk merged commit c130c24 into BlueOakJS:master Nov 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants