NightOwl888 commented on issue #846:
URL: https://github.com/apache/lucenenet/issues/846#issuecomment-2081079628
Yeah, that is what happened when I tried chasing this down on Ubuntu. It
seems that this is due to the exact system configuration that the test is
running in. It may be easier just to revert those 2 time zone changes one at a
time to see if the error stops happening, although it takes lots of runs to get
a failure.
`lucene.testSettings.config` - maybe try the name all lowercase?
> Instead I added those attributes as you provided to the QueryParser tests
AssemblyInfo.cs directly. Let me know if there's a better way to do that.
Thanks!
The attribute is what I usually use because it overrides any other config on
the system.
It is possible to specify system properties in a .runsettings file.
```console
Use the following .runsettings file:
<RunSettings>
<TestRunParameters>
<Parameter name="tests:seed" value="0xfcd3b1a5ebdbe7c0" />
<Parameter name="tests:culture" value="ks-Arab-IN" />
</TestRunParameters>
</RunSettings>
See the .runsettings documentation at:
https://docs.microsoft.com/en-us/visualstudio/test/configure-unit-tests-by-using-a-dot-runsettings-file.
```
It is also possible to pass them via command line, but the syntax is pretty
weird and varies by shell:
https://github.com/Microsoft/vstest-docs/blob/main/docs/RunSettingsArguments.md.
There is an example of this being done in
[TestIndexWriterOnJRECrash](https://github.com/apache/lucenenet/blob/444e6d09ae2451988ff8fcb1d54a00d6a204fd6a/src/Lucene.Net.Tests/Index/TestIndexWriterOnJRECrash.cs#L170-L178).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]