Skip to content

Commit d50b6e3

Browse files
committed
Update tests
1 parent 34f47f6 commit d50b6e3

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

Tests/Common.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ function Initialize-CommonTestSetup
104104
# We execute so many successive state changing commands on the same object that sometimes
105105
# GitHub gets confused. We'll add an intentional delay to slow down our execution in an effort
106106
# to increase the reliability of the tests.
107-
Set-GitHubConfiguration -StateChangeDelaySeconds 3
107+
Set-GitHubConfiguration -StateChangeDelaySeconds 1
108108
}
109109

110110
Initialize-CommonTestSetup

Tests/GitHubTeams.tests.ps1

-12
Original file line numberDiff line numberDiff line change
@@ -250,10 +250,6 @@ try
250250
AfterAll {
251251
if (Get-Variable -Name team -ErrorAction SilentlyContinue)
252252
{
253-
# The CI build has been unreliable with this test.
254-
# Adding a short sleep to ensure successive queries reflect updated state.
255-
Start-Sleep -Seconds $script:defaultSleepSecondsForReliability
256-
257253
$team | Remove-GitHubTeam -Force
258254
}
259255
}
@@ -589,10 +585,6 @@ try
589585
Privacy = $privacy
590586
}
591587

592-
# The CI build has been unreliable with this test.
593-
# Adding a short sleep to ensure successive queries reflect updated state.
594-
Start-Sleep -Seconds $script:defaultSleepSecondsForReliability
595-
596588
$updatedTeam = Set-GitHubTeam @updateGitHubTeamParms
597589
}
598590

@@ -669,10 +661,6 @@ try
669661
$teamName = [Guid]::NewGuid().Guid
670662

671663
$team = New-GitHubTeam -OrganizationName $organizationName -TeamName $teamName
672-
673-
# The CI build has been unreliable with this test.
674-
# Adding a short sleep to ensure successive queries reflect updated state.
675-
Start-Sleep -Seconds $script:defaultSleepSecondsForReliability
676664
}
677665

678666
It 'Should not throw an exception' {

0 commit comments

Comments
 (0)