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 @@ -1363,6 +1363,11 @@ try
1363
1363
Describe ' GitHubRepositories\Disable-GitHubRepositoryVulnerabilityAlert' {
1364
1364
BeforeAll {
1365
1365
$repo = New-GitHubRepository - RepositoryName ([Guid ]::NewGuid().Guid)
1366
+
1367
+ # The CI build has been unreliable with this test.
1368
+ # Adding a short sleep to ensure successive queries reflect updated state.
1369
+ Start-Sleep - Seconds $script :defaultSleepSecondsForReliability
1370
+
1366
1371
Enable-GitHubRepositoryVulnerabilityAlert - Uri $repo.svn_url
1367
1372
}
1368
1373
@@ -1402,6 +1407,11 @@ try
1402
1407
Describe ' GitHubRepositories\Disable-GitHubRepositorySecurityFix' {
1403
1408
BeforeAll {
1404
1409
$repo = New-GitHubRepository - RepositoryName ([Guid ]::NewGuid().Guid)
1410
+
1411
+ # The CI build has been unreliable with this test.
1412
+ # Adding a short sleep to ensure successive queries reflect updated state.
1413
+ Start-Sleep - Seconds $script :defaultSleepSecondsForReliability
1414
+
1405
1415
Enable-GitHubRepositorySecurityFix - Uri $repo.svn_url
1406
1416
}
1407
1417
You can’t perform that action at this time.
0 commit comments