diff options
author | Hao Kung <HaoK@users.noreply.github.com> | 2021-09-29 19:19:09 +0300 |
---|---|---|
committer | Stephen Halter <halter73@gmail.com> | 2022-05-07 02:51:39 +0300 |
commit | 5bc1d2b82c645144b8678290dfd685311b56a35a (patch) | |
tree | 361fdf5eee21ef2cc77ecf605290e2d1b089bee8 | |
parent | f9af36c04b6f762cdb38d1c7ceb172241273f41f (diff) |
Harden another shadow copy test (#37083)darc-release/6.0-5b5b786f-575f-4a7f-9e6a-8426b6c7df1e
-rw-r--r-- | src/Servers/IIS/IIS/test/IIS.FunctionalTests/ShadowCopyTests.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Servers/IIS/IIS/test/IIS.FunctionalTests/ShadowCopyTests.cs b/src/Servers/IIS/IIS/test/IIS.FunctionalTests/ShadowCopyTests.cs index 375bf607ea..cdf6294940 100644 --- a/src/Servers/IIS/IIS/test/IIS.FunctionalTests/ShadowCopyTests.cs +++ b/src/Servers/IIS/IIS/test/IIS.FunctionalTests/ShadowCopyTests.cs @@ -199,7 +199,7 @@ namespace Microsoft.AspNetCore.Server.IIS.FunctionalTests // Depending on timing, this could result in a shutdown failure, but sometimes it succeeds, handle both situations if (!response.IsSuccessStatusCode) { - Assert.Equal("Application Shutting Down", response.ReasonPhrase); + Assert.True(response.ReasonPhrase == "Application Shutting Down" || response.ReasonPhrase == "Server has been shutdown"); } // This shutdown should trigger a copy to the next highest directory, which will be 2 |