Skip to content

Commit

Permalink
Merge branch 'master' into GitHubTeams-Add-New-Remove
Browse files Browse the repository at this point in the history
  • Loading branch information
HowardWolosky committed Jul 23, 2020
2 parents a128b92 + 437ac1b commit 5b5c1a0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Tests/GitHubProjects.tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,11 @@ try
Context 'Remove Repo projects' {
$project = New-GitHubProject -OwnerName $script:ownerName -RepositoryName $repo.name -ProjectName $defaultRepoProject -Description $defaultRepoProjectDesc
$null = Remove-GitHubProject -Project $project.id -Confirm:$false

# Despite using StateChangeDelaySeconds during tests, we still appear to need more time
# for projects to be removed before testing that they were properly deleted.
Start-Sleep -Seconds 5

It 'Project should be removed' {
{Get-GitHubProject -Project $project.id} | Should -Throw
}
Expand All @@ -618,6 +623,11 @@ try
Context 'Remove Repo project via pipeline' {
$project = $repo | New-GitHubProject -ProjectName $defaultRepoProject -Description $defaultRepoProjectDesc
$project | Remove-GitHubProject -Force

# Despite using StateChangeDelaySeconds during tests, we still appear to need more time
# for projects to be removed before testing that they were properly deleted.
Start-Sleep -Seconds 5

It 'Project should be removed' {
{$project | Get-GitHubProject} | Should -Throw
}
Expand Down

0 comments on commit 5b5c1a0

Please sign in to comment.