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

Global config not updating when user or default config changes #11

Closed
areyling opened this issue May 23, 2014 · 1 comment
Closed

Global config not updating when user or default config changes #11

areyling opened this issue May 23, 2014 · 1 comment

Comments

@areyling
Copy link

This is shown when running the ManualDefaultAndUserConfig unit test together with CurrentScopeTest, before bfb1f4d.

When executed separately both will pass, but when ran together the line:

dynamic c = Config.GetCurrentScope ();

will initialize the global config object, causing it to be an outdated merge of the user/default configs after they're set in the set up of ManualDefaultAndUserConfig:

Config.SetUserConfig (parsed.Fruits);
Config.SetDefaultConfig (parsed.Vegetables);
//...
dynamic scope = Config.Global; //no longer up-to-date
@areyling
Copy link
Author

After bfb1f4d, running ManualDefaultAndUserConfig individually will cause the test to fail (Length is 7 instead of 1; when ran together with CurrentScopeTest, Length is 1 instead of 7).

Dynalon added a commit that referenced this issue May 23, 2014
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

No branches or pull requests

1 participant