diff --git a/test/Microsoft.AspNetCore.SignalR.Tests/HubEndpointTests.cs b/test/Microsoft.AspNetCore.SignalR.Tests/HubEndpointTests.cs index ac4c913a99..6740d1dc1f 100644 --- a/test/Microsoft.AspNetCore.SignalR.Tests/HubEndpointTests.cs +++ b/test/Microsoft.AspNetCore.SignalR.Tests/HubEndpointTests.cs @@ -3,14 +3,10 @@ using System; using System.IO.Pipelines; -using System.Linq; using System.Security.Claims; using System.Threading.Tasks; -using Microsoft.AspNetCore.Hosting; -using Microsoft.AspNetCore.Hosting.Internal; using Microsoft.AspNetCore.Sockets; using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.Logging; using Xunit; namespace Microsoft.AspNetCore.SignalR.Tests @@ -88,8 +84,7 @@ namespace Microsoft.AspNetCore.SignalR.Tests _factory = new PipelineFactory(); _httpConnection = new HttpConnection(_factory); - var lifetime = new ApplicationLifetime(new Logger(new LoggerFactory()), Enumerable.Empty()); - var connectionManager = new ConnectionManager(lifetime); + var connectionManager = new ConnectionManager(); Connection = connectionManager.AddNewConnection(_httpConnection).Connection; Connection.Metadata["formatType"] = format; diff --git a/test/Microsoft.AspNetCore.SignalR.Tests/project.json b/test/Microsoft.AspNetCore.SignalR.Tests/project.json index 6a9a7addc3..8cc8fc908e 100644 --- a/test/Microsoft.AspNetCore.SignalR.Tests/project.json +++ b/test/Microsoft.AspNetCore.SignalR.Tests/project.json @@ -6,12 +6,8 @@ "dependencies": { "dotnet-test-xunit": "2.2.0-*", "Microsoft.AspNetCore.Hosting": "1.2.0-*", - "Microsoft.AspNetCore.Sockets": { - "target": "project" - }, - "Microsoft.AspNetCore.SignalR": { - "target": "project" - }, + "Microsoft.AspNetCore.Sockets": "0.1.0-*", + "Microsoft.AspNetCore.SignalR": "1.0.0-*", "Microsoft.Extensions.DependencyInjection": "1.2.0-*", "Microsoft.Extensions.Logging": "1.2.0-*", "xunit": "2.2.0-*"