-
Notifications
You must be signed in to change notification settings - Fork 382
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
Test failure: When_there_are_subcommands_and_options_then_a_subcommand_must_be_provided #54
Comments
Oddly, it sometimes passes: https://ci2.dot.net/job/Private/job/dotnet_System.CommandLine/job/master/job/Debug_Windows_NT_prtest/22/. Something similar-looking was happening as well in the original repo and the mystery wasn't solved, though I had a proposal that we could try. dotnet/CliCommandLineParser#93 |
Saw that. Trying an update to FluentAssertions. |
So, Jon and I found out on the way to Spokane that this is the race condition in test parallelization and ValidationMessages.Current. I think we should consider not having a static, settable property to configure validation message customization. |
I had thought I fixed this by referencing So no shortcut here.. We should definitely change the localization story to not use a static. |
I drafted a change, but the localization is tough because much of the validation is currently done in static help methods. Will have to think about it more |
Should be resolved with #85 |
This reproduces consistently in Debug, but not release. There appears to be some kind of race condition in the tests. The output "the-message" comes from another test, Default_validation_messages_can_be_replaced_in_order_to_add_localization_support.
cc @jonsequitur
The text was updated successfully, but these errors were encountered: