Increasing the timeout of host start (#279)
* Increasing the timeout of host start * Increasing log level
This commit is contained in:
parent
9f0edefd16
commit
a2d088bc3c
|
|
@ -32,6 +32,10 @@ namespace Microsoft.AspNetCore.SignalR.Tests
|
|||
|
||||
public EndToEndTests(ServerFixture serverFixture)
|
||||
{
|
||||
if (serverFixture == null)
|
||||
{
|
||||
throw new ArgumentNullException(nameof(serverFixture));
|
||||
}
|
||||
_serverFixture = serverFixture;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue