-
Notifications
You must be signed in to change notification settings - Fork 281
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
ConnectionOpenDisableRetry test deterministically fails locally #1196
Comments
I looked into the test, I also tested with VS 2019. The test caught an actual exception ( which is expected, the next line should not be reached). On my try all values were captured as we expected. Can you try without pauseOnError and see how it works? |
on some other notes, can you capture logs when that happens? |
Exactly the same result without the pauseOnError. What logs do you want gathering and how? |
@Wraith2 there are two possible ways to do so. Option one is to use PerfView and look for traces from
(Tests running by XUnit may not show any logs using perfview or at least I was not able to capture them. You can add that test as a new project and try to run that.) The other way is to add a listener. In this case, you can wrap the test with a listener and print them all on a desired output. you can look into EventSourceTest in the driver. The change you can make is inside here is how I use that when I use listener:
basically modify the class in DataTestUtility and wrap the test in a using block of that class. All the logs from here are the steps that driver has taken to get to the point of the issue or success. |
The console out didn't work do i piped it to a file instead which did:
|
Do you also get this error when you specify "User Id" and "Password" in connection string? |
Yup:
|
I think the issue happens in your case because of |
That's it. Connect Timeout must be >= 11 for the test to succeed, it's probably worth forcing that in the test. |
I will adjust the PR to address the issue. |
When running tests locally at the commandline I usually get 2 failures, one is TvpMain which is being reworked and the other is:
the build batch file I use is:
The text was updated successfully, but these errors were encountered: