Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fix Delay Test Race Condition#5035

Merged
daxian-dbw merged 3 commits into
PowerShell:masterPowerShell/PowerShell:masterfrom
markekraus:FixDelayTestsmarkekraus/PowerShell:FixDelayTestsCopy head branch name to clipboard
Oct 6, 2017
Merged

Fix Delay Test Race Condition#5035
daxian-dbw merged 3 commits into
PowerShell:masterPowerShell/PowerShell:masterfrom
markekraus:FixDelayTestsmarkekraus/PowerShell:FixDelayTestsCopy head branch name to clipboard

Conversation

@markekraus

Copy link
Copy Markdown
Contributor

Race condition where WebListener is answering fast enough for the timeout not to trigger. Address CI issues in #4937 expands work from #5005 to other tests.

example: https://travis-ci.org/PowerShell/PowerShell/jobs/284145590


$uri = Get-WebListenerUrl -Test 'Delay' -TestValue '5' -Https:$($protocol -eq 'https')
$uri = Get-WebListenerUrl -Test 'Delay' -TestValue '6' -Https:$($protocol -eq 'https')
$command = "Invoke-WebRequest -Uri '$uri' -TimeoutSec 5 -Proxy '${proxy_address}' -SkipCertificateCheck"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since it appears that this test expects a timeout to happen, should we make timeoutsec less? like 2 seconds?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SteveL-MSFT I'm good with that. I will modify your previous change as well so they are all on the same settings. Are you thinking the -TestValue '5' and the -TimeoutSec 2?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think delay of 5 and timeout of 2 makes sense

@daxian-dbw daxian-dbw merged commit 97ee17c into PowerShell:master Oct 6, 2017
@markekraus markekraus deleted the FixDelayTests branch January 19, 2018 18:58
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

Successfully merging this pull request may close these issues.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.