Add more logging to a failing tests and move dumps to logs directory (#7462)
This commit is contained in:
parent
476a1827f4
commit
037a5b0231
|
|
@ -7,6 +7,7 @@ using System.Threading.Tasks;
|
|||
using Microsoft.AspNetCore.Connections;
|
||||
using Microsoft.AspNetCore.Server.IntegrationTesting;
|
||||
using Microsoft.AspNetCore.Testing.xunit;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Xunit;
|
||||
|
||||
namespace Microsoft.AspNetCore.Server.IISIntegration.FunctionalTests
|
||||
|
|
@ -203,7 +204,16 @@ namespace Microsoft.AspNetCore.Server.IISIntegration.FunctionalTests
|
|||
cancellationTokenSource.Cancel();
|
||||
await requestCompletedCompletionSource.Task.DefaultTimeout();
|
||||
}
|
||||
Assert.IsType<OperationCanceledException>(exception);
|
||||
|
||||
try
|
||||
{
|
||||
Assert.IsType<OperationCanceledException>(exception);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Logger.LogError(e, "Unexpected exception");
|
||||
throw;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ Remove-Item "HKLM:\SOFTWARE\Microsoft\IIS Extensions\IIS AspNetCore Module V2\Pa
|
|||
|
||||
if (!($DumpFolder))
|
||||
{
|
||||
$DumpFolder = "$PSScriptRoot\..\..\..\..\artifacts\dumps"
|
||||
$DumpFolder = "$PSScriptRoot\..\..\..\..\artifacts\logs\dumps"
|
||||
}
|
||||
if (!(Test-Path $DumpFolder))
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue