|
81 | 81 | $repositoryName = [Guid]::NewGuid().Guid
|
82 | 82 | $repo = New-GitHubRepository -RepositoryName $repositoryName
|
83 | 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 | + |
84 | 88 | Initialize-GitHubLabel -OwnerName $script:ownerName -RepositoryName $repositoryName -Label $defaultLabels
|
85 | 89 | }
|
86 | 90 |
|
|
205 | 209 | BeforeAll {
|
206 | 210 | $repositoryName = [Guid]::NewGuid().Guid
|
207 | 211 | $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 |
208 | 216 | }
|
209 | 217 |
|
210 | 218 | AfterAll {
|
|
319 | 327 | BeforeAll {
|
320 | 328 | $repositoryName = [Guid]::NewGuid().Guid
|
321 | 329 | $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 |
322 | 334 | }
|
323 | 335 |
|
324 | 336 | AfterAll {
|
|
327 | 339 |
|
328 | 340 | Context 'Removing a label with parameters' {
|
329 | 341 | $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 | + |
330 | 347 | Remove-GitHubLabel -OwnerName $script:ownerName -RepositoryName $repositoryName -Label $label.name -Force
|
331 | 348 |
|
332 | 349 | It 'Should be gone after being removed by parameter' {
|
|
336 | 353 |
|
337 | 354 | Context 'Removing a label with the repo on the pipeline' {
|
338 | 355 | $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 | + |
339 | 361 | $repo | Remove-GitHubLabel -Label $label.name -Confirm:$false
|
340 | 362 |
|
341 | 363 | It 'Should be gone after being removed by parameter' {
|
|
345 | 367 |
|
346 | 368 | Context 'Removing a label with the name on the pipeline' {
|
347 | 369 | $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 | + |
348 | 375 | $label.name | Remove-GitHubLabel -OwnerName $script:ownerName -RepositoryName $repositoryName -Force
|
349 | 376 |
|
350 | 377 | It 'Should be gone after being removed by parameter' {
|
|
354 | 381 |
|
355 | 382 | Context 'Removing a label with the label object on the pipeline' {
|
356 | 383 | $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 | + |
357 | 389 | $label | Remove-GitHubLabel -Force
|
358 | 390 |
|
359 | 391 | It 'Should be gone after being removed by parameter' {
|
|
366 | 398 | BeforeAll {
|
367 | 399 | $repositoryName = [Guid]::NewGuid().Guid
|
368 | 400 | $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 |
369 | 405 | }
|
370 | 406 |
|
371 | 407 | AfterAll {
|
|
543 | 579 | BeforeAll {
|
544 | 580 | $repositoryName = [Guid]::NewGuid().Guid
|
545 | 581 | $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 |
546 | 586 | }
|
547 | 587 |
|
548 | 588 | AfterAll {
|
|
617 | 657 | BeforeAll {
|
618 | 658 | $repositoryName = [Guid]::NewGuid().Guid
|
619 | 659 | $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 | + |
620 | 665 | $repo | Initialize-GitHubLabel -Label $defaultLabels
|
621 | 666 | }
|
622 | 667 |
|
|
845 | 890 | BeforeAll {
|
846 | 891 | $repositoryName = [Guid]::NewGuid().Guid
|
847 | 892 | $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 | + |
848 | 898 | $repo | Initialize-GitHubLabel -Label $defaultLabels
|
849 | 899 | }
|
850 | 900 |
|
|
911 | 961 | BeforeAll {
|
912 | 962 | $repositoryName = [Guid]::NewGuid().Guid
|
913 | 963 | $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 | + |
914 | 969 | $repo | Initialize-GitHubLabel -Label $defaultLabels
|
915 | 970 | }
|
916 | 971 |
|
@@ -1078,6 +1133,11 @@ try
|
1078 | 1133 | BeforeAll {
|
1079 | 1134 | $repositoryName = [Guid]::NewGuid().Guid
|
1080 | 1135 | $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 | + |
1081 | 1141 | $repo | Initialize-GitHubLabel -Label $defaultLabels
|
1082 | 1142 | }
|
1083 | 1143 |
|
@@ -1227,6 +1287,11 @@ try
|
1227 | 1287 | BeforeAll {
|
1228 | 1288 | $repositoryName = [Guid]::NewGuid().Guid
|
1229 | 1289 | $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 | + |
1230 | 1295 | $repo | Initialize-GitHubLabel -Label $defaultLabels
|
1231 | 1296 |
|
1232 | 1297 | $milestone = $repo | New-GitHubMilestone -Title 'test milestone'
|
|
0 commit comments