Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
/ corefx Public archive

SqlConnection timeout test is ported #26306

Merged
merged 1 commit into from
Jan 16, 2018
Merged

SqlConnection timeout test is ported #26306

merged 1 commit into from
Jan 16, 2018

Conversation

geleems
Copy link

@geleems geleems commented Jan 12, 2018

The connection timeout unit test that had been merged to release/2.0.0 branch is to be ported to master branch.

@stephentoub
Copy link
Member

ConnectionTimeoutTestWithThread appears to be causing all PRs to fail on Windows.
cc: @danmosemsft

@saurabh500
Copy link
Contributor

I will disable the test. @geleems please investigate.

@geleems
Copy link
Author

geleems commented Jan 18, 2018

The timeout was set 5 seconds, and cutoff time for valid elapsed time was set 6 seconds. It seems some elapsed time were slightly over 6 seconds in some environment, which causes the PR failures.

@danmoseley
Copy link
Member

I have seen timeouts/sleeps be several times longer than you expect, depending on the machine, the load etc. Eg., if something is supposed to return in 5 secs you would want to wait for 30 secs to be safe. And there is no reliable way of knowing that what you're waiting on did not attempt to wait for longer.

@karelz karelz added this to the 2.1.0 milestone Jan 20, 2018
@geleems geleems deleted the port branch February 16, 2018 00:15
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants