Fix win7 test failures. (#1109)
This commit is contained in:
parent
c6ba21efc1
commit
0af3bef0fe
|
|
@ -99,7 +99,7 @@ namespace Microsoft.AspNetCore.Server.IntegrationTesting
|
|||
_logger.LogInformation($"Tried to start site, state: {state.ToString()}");
|
||||
}
|
||||
}
|
||||
catch (COMException comException)
|
||||
catch (Exception ex) when (ex is DllNotFoundException || (ex is COMException && (uint)ex.HResult == 0x800710D8) )
|
||||
{
|
||||
// Accessing the site.State property while the site
|
||||
// is starting up returns the COMException
|
||||
|
|
@ -107,7 +107,6 @@ namespace Microsoft.AspNetCore.Server.IntegrationTesting
|
|||
// (Exception from HRESULT: 0x800710D8)
|
||||
// This also means the site is not started yet, so catch and retry
|
||||
// after waiting.
|
||||
_logger.LogWarning($"ComException: {comException.Message}");
|
||||
}
|
||||
|
||||
await Task.Delay(_retryDelay);
|
||||
|
|
|
|||
|
|
@ -68,7 +68,6 @@
|
|||
<section name="httpTracing" overrideModeDefault="Deny" />
|
||||
<section name="isapiFilters" allowDefinition="MachineToApplication" overrideModeDefault="Deny" />
|
||||
<section name="modules" allowDefinition="MachineToApplication" overrideModeDefault="Deny" />
|
||||
<section name="applicationInitialization" allowDefinition="MachineToApplication" overrideModeDefault="Allow" />
|
||||
<section name="odbcLogging" overrideModeDefault="Deny" />
|
||||
<sectionGroup name="security">
|
||||
<section name="access" overrideModeDefault="Deny" />
|
||||
|
|
|
|||
|
|
@ -7,5 +7,4 @@ using Xunit;
|
|||
|
||||
[assembly: CollectionBehavior(DisableTestParallelization = true)]
|
||||
[assembly: RequiresIIS]
|
||||
[assembly: OSSkipCondition(OperatingSystems.Windows, WindowsVersions.Win7, SkipReason = "https://github.com/aspnet/IISIntegration/issues/1069")]
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue