Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions src/Servers/IIS/IIS/test/Common.LongTests/ShutdownTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -471,9 +471,13 @@ public async Task ConfigurationChangeForcesChildProcessRestart()
// Just "touching" web.config should be enough
deploymentResult.ModifyWebConfig(element => { });

// Have to retry here to allow ANCM to receive notification and react to it
// Verify that worker process gets restarted with new process id
await deploymentResult.HttpClient.RetryRequestAsync("/ProcessId", async r => await r.Content.ReadAsStringAsync() != processBefore);
// Requests can be interrupted while ANCM replaces the worker, so retry both
// transient request failures and responses from the original process.
await Helpers.Retry(async () =>
{
var processAfter = await deploymentResult.HttpClient.GetStringAsync("/ProcessId");
Assert.NotEqual(processBefore, processAfter);
}, TimeSpan.FromSeconds(10));
}

[ConditionalFact]
Expand Down
Loading