File tree 1 file changed +10
-0
lines changed
1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 610
610
Context ' Remove Repo projects' {
611
611
$project = New-GitHubProject - OwnerName $script :ownerName - RepositoryName $repo.name - ProjectName $defaultRepoProject - Description $defaultRepoProjectDesc
612
612
$null = Remove-GitHubProject - Project $project.id - Confirm:$false
613
+
614
+ # Despite using StateChangeDelaySeconds during tests, we still appear to need more time
615
+ # for projects to be removed before testing that they were properly deleted.
616
+ Start-Sleep - Seconds 5
617
+
613
618
It ' Project should be removed' {
614
619
{Get-GitHubProject - Project $project.id } | Should - Throw
615
620
}
618
623
Context ' Remove Repo project via pipeline' {
619
624
$project = $repo | New-GitHubProject - ProjectName $defaultRepoProject - Description $defaultRepoProjectDesc
620
625
$project | Remove-GitHubProject - Force
626
+
627
+ # Despite using StateChangeDelaySeconds during tests, we still appear to need more time
628
+ # for projects to be removed before testing that they were properly deleted.
629
+ Start-Sleep - Seconds 5
630
+
621
631
It ' Project should be removed' {
622
632
{$project | Get-GitHubProject } | Should - Throw
623
633
}
You can’t perform that action at this time.
0 commit comments