Skip to content

Conversation

@xtqqczze
Copy link
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
Contributor Author

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

@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`.
}
# Wait
Start-Sleep -Milliseconds $intervalInMilliseconds
Start-Sleep -Milliseconds $intervalInMilliseconds > $null
Copy link
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

Copy link
Collaborator

@iSazonov iSazonov left a comment

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
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