Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Sep 8, 2022. It is now read-only.

Commit cfc9945

Browse files
Make tests a little more robust
1 parent 2733938 commit cfc9945

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

‎examples/04-CreateAppPool/Web.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ cd $here
66

77
. ..\_Setup.Web.ps1
88

9+
Remove-Item -Path "IIS:\AppPools\My Pool" -Recurse -Force -ErrorAction SilentlyContinue
10+
911
# -----------------------------------------------------------------------------
1012
# Example
1113
# -----------------------------------------------------------------------------

‎examples/_Setup.IIS.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ Import-Module IISAdministration -ErrorAction SilentlyContinue
77
mkdir "C:\Sites" -ErrorAction SilentlyContinue
88
mkdir "C:\Sites\MySite" -ErrorAction SilentlyContinue
99

10+
$ErrorActionPreference = "Continue"
11+
1012
# In case previous invocations left one open
1113
Stop-IISCommitDelay -commit $false -WarningAction SilentlyContinue
1214
Stop-IISCommitDelay -commit $false -WarningAction SilentlyContinue

‎examples/_Setup.Web.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ Import-Module WebAdministration -ErrorAction SilentlyContinue
99
mkdir "C:\Sites" -ErrorAction SilentlyContinue
1010
mkdir "C:\Sites\MySite" -ErrorAction SilentlyContinue
1111

12+
$ErrorActionPreference = "Continue"
13+
1214
# In case previous invocations left one open
1315
Stop-WebCommitDelay -commit $false -WarningAction SilentlyContinue -ErrorAction SilentlyContinue
1416
Stop-WebCommitDelay -commit $false -WarningAction SilentlyContinue -ErrorAction SilentlyContinue

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /