Increasing the timeout of host start (#279)

* Increasing the timeout of host start

* Increasing log level
This commit is contained in:
Pawel Kadluczka 2017-03-09 16:58:46 -08:00 committed by GitHub
parent 9f0edefd16
commit a2d088bc3c
2 changed files with 6 additions and 2 deletions

View File

@ -32,6 +32,10 @@ namespace Microsoft.AspNetCore.SignalR.Tests
public EndToEndTests(ServerFixture serverFixture)
{
if (serverFixture == null)
{
throw new ArgumentNullException(nameof(serverFixture));
}
_serverFixture = serverFixture;
}

View File

@ -29,7 +29,7 @@ namespace Microsoft.AspNetCore.SignalR.Tests
var _verbose = string.Equals(Environment.GetEnvironmentVariable("SIGNALR_TESTS_VERBOSE"), "1");
if (_verbose)
{
_loggerFactory.AddConsole();
_loggerFactory.AddConsole(LogLevel.Debug);
}
if (Debugger.IsAttached)
{
@ -66,7 +66,7 @@ namespace Microsoft.AspNetCore.SignalR.Tests
var t = Task.Run(() => host.Start());
Console.WriteLine("Starting test server...");
lifetime = host.Services.GetRequiredService<IApplicationLifetime>();
if (!lifetime.ApplicationStarted.WaitHandle.WaitOne(TimeSpan.FromSeconds(1)))
if (!lifetime.ApplicationStarted.WaitHandle.WaitOne(TimeSpan.FromSeconds(5)))
{
// t probably faulted
if (t.IsFaulted)