Skip to content

Ensure Wait-UntilTrue returns $true in Pester tests#9458

Merged
adityapatwardhan merged 5 commits into
PowerShell:masterfrom
xtqqczze:WaitUntilTrue-ShouldBeTrue
May 2, 2019
Merged

Ensure Wait-UntilTrue returns $true in Pester tests#9458
adityapatwardhan merged 5 commits into
PowerShell:masterfrom
xtqqczze:WaitUntilTrue-ShouldBeTrue

Conversation

@xtqqczze

Copy link
Copy Markdown
Contributor

PR Summary

  • Ensure Wait-UntilTrue returns $true
  • Ensure Wait-FileToBePresent returns $true
  • Mark a ConvertTo-Json test as Pending due to test failure

PR Context

Pester tests should check if the function Wait-UntilTrue actually returns $true rather than timing out.

PR Checklist

* Ensure Wait-UntilTrue returns $true in Pester tests
* Mark a ConvertTo-Json test as Pendingc due to test failure
@xtqqczze

Copy link
Copy Markdown
Contributor Author

Test failure on PowerShell-CI-linux appears to be unrelated to this PR, probably caused by #9250.

Comment thread test/powershell/Language/Scripting/Debugging/Debugging.Tests.ps1 Outdated
@iSazonov iSazonov added the CL-Test Indicates that a PR should be marked as a test change in the Change Log label Apr 25, 2019
@iSazonov iSazonov added this to the 7.0.0-preview.1 milestone Apr 25, 2019
Use `Should -BeTrue` instead of `Should -BeExactly $true`.
Comment thread test/tools/Modules/HelpersCommon/HelpersCommon.psm1 Outdated
}
# Wait
Start-Sleep -Milliseconds $intervalInMilliseconds
Start-Sleep -Milliseconds $intervalInMilliseconds > $null

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.

This should not be needed, but won't hurt anything

@iSazonov iSazonov left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM with one request to open a tracking issue.

@xtqqczze

Copy link
Copy Markdown
Contributor Author

Opened #9489 for ConvertTo-Json test failure.

@adityapatwardhan adityapatwardhan merged commit a702f68 into PowerShell:master May 2, 2019
@xtqqczze xtqqczze deleted the WaitUntilTrue-ShouldBeTrue branch May 8, 2019 19:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-Test Indicates that a PR should be marked as a test change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants