Add more logging to a failing tests and move dumps to logs directory (#7462)

This commit is contained in:
Pavel Krymets 2019-02-11 12:14:05 -08:00 committed by GitHub
parent 476a1827f4
commit 037a5b0231
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 2 deletions

View File

@ -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;
}
}
}

View File

@ -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))
{