|
80 | 80 | BeforeAll { |
81 | 81 | $repositoryName = [Guid]::NewGuid().Guid |
82 | 82 | $repo = New-GitHubRepository -RepositoryName $repositoryName |
83 | | - |
84 | | - # The CI build has been unreliable with this test. |
85 | | - # Adding a short sleep to ensure successive queries reflect updated state. |
86 | | - Start-Sleep -Seconds $script:defaultSleepSecondsForReliability |
87 | | - |
88 | 83 | Initialize-GitHubLabel -OwnerName $script:ownerName -RepositoryName $repositoryName -Label $defaultLabels |
89 | 84 | } |
90 | 85 |
|
|
209 | 204 | BeforeAll { |
210 | 205 | $repositoryName = [Guid]::NewGuid().Guid |
211 | 206 | $repo = New-GitHubRepository -RepositoryName $repositoryName |
212 | | - |
213 | | - # The CI build has been unreliable with this test. |
214 | | - # Adding a short sleep to ensure successive queries reflect updated state. |
215 | | - Start-Sleep -Seconds $script:defaultSleepSecondsForReliability |
216 | 207 | } |
217 | 208 |
|
218 | 209 | AfterAll { |
|
327 | 318 | BeforeAll { |
328 | 319 | $repositoryName = [Guid]::NewGuid().Guid |
329 | 320 | $repo = New-GitHubRepository -RepositoryName $repositoryName |
330 | | - |
331 | | - # The CI build has been unreliable with this test. |
332 | | - # Adding a short sleep to ensure successive queries reflect updated state. |
333 | | - Start-Sleep -Seconds $script:defaultSleepSecondsForReliability |
334 | 321 | } |
335 | 322 |
|
336 | 323 | AfterAll { |
|
339 | 326 |
|
340 | 327 | Context 'Removing a label with parameters' { |
341 | 328 | $label = $repo | New-GitHubLabel -Label 'test' -Color 'CCCCCC' |
342 | | - |
343 | | - # The CI build has been unreliable with this test. |
344 | | - # Adding a short sleep to ensure successive queries reflect updated state. |
345 | | - Start-Sleep -Seconds $script:defaultSleepSecondsForReliability |
346 | | - |
347 | 329 | Remove-GitHubLabel -OwnerName $script:ownerName -RepositoryName $repositoryName -Label $label.name -Force |
348 | 330 |
|
349 | 331 | It 'Should be gone after being removed by parameter' { |
|
353 | 335 |
|
354 | 336 | Context 'Removing a label with the repo on the pipeline' { |
355 | 337 | $label = $repo | New-GitHubLabel -Label 'test' -Color 'CCCCCC' |
356 | | - |
357 | | - # The CI build has been unreliable with this test. |
358 | | - # Adding a short sleep to ensure successive queries reflect updated state. |
359 | | - Start-Sleep -Seconds $script:defaultSleepSecondsForReliability |
360 | | - |
361 | 338 | $repo | Remove-GitHubLabel -Label $label.name -Confirm:$false |
362 | 339 |
|
363 | 340 | It 'Should be gone after being removed by parameter' { |
|
367 | 344 |
|
368 | 345 | Context 'Removing a label with the name on the pipeline' { |
369 | 346 | $label = $repo | New-GitHubLabel -Label 'test' -Color 'CCCCCC' |
370 | | - |
371 | | - # The CI build has been unreliable with this test. |
372 | | - # Adding a short sleep to ensure successive queries reflect updated state. |
373 | | - Start-Sleep -Seconds $script:defaultSleepSecondsForReliability |
374 | | - |
375 | 347 | $label.name | Remove-GitHubLabel -OwnerName $script:ownerName -RepositoryName $repositoryName -Force |
376 | 348 |
|
377 | 349 | It 'Should be gone after being removed by parameter' { |
|
381 | 353 |
|
382 | 354 | Context 'Removing a label with the label object on the pipeline' { |
383 | 355 | $label = $repo | New-GitHubLabel -Label 'test' -Color 'CCCCCC' |
384 | | - |
385 | | - # The CI build has been unreliable with this test. |
386 | | - # Adding a short sleep to ensure successive queries reflect updated state. |
387 | | - Start-Sleep -Seconds $script:defaultSleepSecondsForReliability |
388 | | - |
389 | 356 | $label | Remove-GitHubLabel -Force |
390 | 357 |
|
391 | 358 | It 'Should be gone after being removed by parameter' { |
|
398 | 365 | BeforeAll { |
399 | 366 | $repositoryName = [Guid]::NewGuid().Guid |
400 | 367 | $repo = New-GitHubRepository -RepositoryName $repositoryName |
401 | | - |
402 | | - # The CI build has been unreliable with this test. |
403 | | - # Adding a short sleep to ensure successive queries reflect updated state. |
404 | | - Start-Sleep -Seconds $script:defaultSleepSecondsForReliability |
405 | 368 | } |
406 | 369 |
|
407 | 370 | AfterAll { |
|
579 | 542 | BeforeAll { |
580 | 543 | $repositoryName = [Guid]::NewGuid().Guid |
581 | 544 | $repo = New-GitHubRepository -RepositoryName $repositoryName |
582 | | - |
583 | | - # The CI build has been unreliable with this test. |
584 | | - # Adding a short sleep to ensure successive queries reflect updated state. |
585 | | - Start-Sleep -Seconds $script:defaultSleepSecondsForReliability |
586 | 545 | } |
587 | 546 |
|
588 | 547 | AfterAll { |
|
657 | 616 | BeforeAll { |
658 | 617 | $repositoryName = [Guid]::NewGuid().Guid |
659 | 618 | $repo = New-GitHubRepository -RepositoryName $repositoryName |
660 | | - |
661 | | - # The CI build has been unreliable with this test. |
662 | | - # Adding a short sleep to ensure successive queries reflect updated state. |
663 | | - Start-Sleep -Seconds $script:defaultSleepSecondsForReliability |
664 | | - |
665 | 619 | $repo | Initialize-GitHubLabel -Label $defaultLabels |
666 | 620 | } |
667 | 621 |
|
|
890 | 844 | BeforeAll { |
891 | 845 | $repositoryName = [Guid]::NewGuid().Guid |
892 | 846 | $repo = New-GitHubRepository -RepositoryName $repositoryName |
893 | | - |
894 | | - # The CI build has been unreliable with this test. |
895 | | - # Adding a short sleep to ensure successive queries reflect updated state. |
896 | | - Start-Sleep -Seconds $script:defaultSleepSecondsForReliability |
897 | | - |
898 | 847 | $repo | Initialize-GitHubLabel -Label $defaultLabels |
899 | 848 | } |
900 | 849 |
|
|
961 | 910 | BeforeAll { |
962 | 911 | $repositoryName = [Guid]::NewGuid().Guid |
963 | 912 | $repo = New-GitHubRepository -RepositoryName $repositoryName |
964 | | - |
965 | | - # The CI build has been unreliable with this test. |
966 | | - # Adding a short sleep to ensure successive queries reflect updated state. |
967 | | - Start-Sleep -Seconds $script:defaultSleepSecondsForReliability |
968 | | - |
969 | 913 | $repo | Initialize-GitHubLabel -Label $defaultLabels |
970 | 914 | } |
971 | 915 |
|
@@ -1133,11 +1077,6 @@ try |
1133 | 1077 | BeforeAll { |
1134 | 1078 | $repositoryName = [Guid]::NewGuid().Guid |
1135 | 1079 | $repo = New-GitHubRepository -RepositoryName $repositoryName |
1136 | | - |
1137 | | - # The CI build has been unreliable with this test. |
1138 | | - # Adding a short sleep to ensure successive queries reflect updated state. |
1139 | | - Start-Sleep -Seconds $script:defaultSleepSecondsForReliability |
1140 | | - |
1141 | 1080 | $repo | Initialize-GitHubLabel -Label $defaultLabels |
1142 | 1081 | } |
1143 | 1082 |
|
@@ -1287,11 +1226,6 @@ try |
1287 | 1226 | BeforeAll { |
1288 | 1227 | $repositoryName = [Guid]::NewGuid().Guid |
1289 | 1228 | $repo = New-GitHubRepository -RepositoryName $repositoryName |
1290 | | - |
1291 | | - # The CI build has been unreliable with this test. |
1292 | | - # Adding a short sleep to ensure successive queries reflect updated state. |
1293 | | - Start-Sleep -Seconds $script:defaultSleepSecondsForReliability |
1294 | | - |
1295 | 1229 | $repo | Initialize-GitHubLabel -Label $defaultLabels |
1296 | 1230 |
|
1297 | 1231 | $milestone = $repo | New-GitHubMilestone -Title 'test milestone' |
|
0 commit comments