File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 309
309
}
310
310
311
311
AfterAll {
312
- Remove-Item - Path $tempPath - Recurse - ErrorAction SilentlyContinue - Force
312
+ if (Get-Variable - Name tempPath - ErrorAction SilentlyContinue)
313
+ {
314
+ Remove-Item - Path $tempPath - Recurse - ErrorAction SilentlyContinue - Force
315
+ }
313
316
}
314
317
315
318
Context ' Download gist content' {
Original file line number Diff line number Diff line change @@ -1271,6 +1271,11 @@ try
1271
1271
Describe ' GitHubRepositories\Disable-GitHubRepositoryVulnerabilityAlert' {
1272
1272
BeforeAll {
1273
1273
$repo = New-GitHubRepository - RepositoryName ([Guid ]::NewGuid().Guid)
1274
+
1275
+ # The CI build has been unreliable with this test.
1276
+ # Adding a short sleep to ensure successive queries reflect updated state.
1277
+ Start-Sleep - Seconds $script :defaultSleepSecondsForReliability
1278
+
1274
1279
Enable-GitHubRepositoryVulnerabilityAlert - Uri $repo.svn_url
1275
1280
}
1276
1281
@@ -1306,6 +1311,11 @@ try
1306
1311
Describe ' GitHubRepositories\Disable-GitHubRepositorySecurityFix' {
1307
1312
BeforeAll {
1308
1313
$repo = New-GitHubRepository - RepositoryName ([Guid ]::NewGuid().Guid)
1314
+
1315
+ # The CI build has been unreliable with this test.
1316
+ # Adding a short sleep to ensure successive queries reflect updated state.
1317
+ Start-Sleep - Seconds $script :defaultSleepSecondsForReliability
1318
+
1309
1319
Enable-GitHubRepositorySecurityFix - Uri $repo.svn_url
1310
1320
}
1311
1321
You can’t perform that action at this time.
0 commit comments