Skip to content

Commit 3aaf4cd

Browse files
Add AppOfflineDroppedWhileSiteIsDown_SiteReturns503_InProcess to test retry list (#41718)
1 parent f28c367 commit 3aaf4cd

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

eng/test-configuration.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"localRerunCount" : 3,
55
"retryOnRules": [
66
{"testName": {"contains": "AppOfflineDroppedWhileSiteStarting_SiteShutsDown_InProcess"}},
7+
{"testName": {"contains": "AppOfflineDroppedWhileSiteIsDown_SiteReturns503_InProcess"}},
78
{"testName": {"contains": "CheckFrebDisconnect"}},
89
{"testName": {"contains": "CheckStdoutWithLargeWrites"}},
910
{"testName": {"contains": "ServerShutsDownWhenMainExitsStress" }},

src/Servers/IIS/IntegrationTesting.IIS/src/IISDeployer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ private void WaitUntilSiteStarted(string contentRoot)
264264
var workerProcess = appPool.WorkerProcesses.SingleOrDefault();
265265
if (workerProcess == null)
266266
{
267-
throw new InvalidOperationException("Site is started but no worked process found");
267+
throw new InvalidOperationException("Site is started but no worker process found");
268268
}
269269

270270
HostProcess = Process.GetProcessById(workerProcess.ProcessId);
@@ -413,7 +413,7 @@ private void Stop()
413413
}
414414
}
415415

416-
if (!HostProcess.HasExited)
416+
if (HostProcess is not null && !HostProcess.HasExited)
417417
{
418418
throw new InvalidOperationException("Site is stopped but host process is not");
419419
}

0 commit comments

Comments
 (0)