-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
If we run boot process in a context, getCurrentContext fails some times when connector is still connecting to mongodb #2358
Comments
@pkgulati : Hi, I don't understand what you're trying to do. Could you please provide a sample code/repo so that I can understand well what you're trying to achieve and can help you better. |
|
Other possibility is we write a simple mocha test script , so basically getCurrentContext works for http request but for mocha or boot scripts it does not work
` |
In above example I expect foo = bar when printing context 3 line, however it does not work that way |
We have tried both approach calling boot in runInContext as well as calling some individual boot scripts in runInContext.
Why we are using getCurrentContext in boot?
Actually we have some logic in 'before save" mixins which works on context, we are basically trying to load some data in boot script for different context.
The text was updated successfully, but these errors were encountered: