From d0961fe28a36df91776d1ab93f93129b304aebf6 Mon Sep 17 00:00:00 2001 From: BrennanConroy Date: Tue, 6 Dec 2016 08:48:59 -0800 Subject: [PATCH] Fix CI --- .../HubEndpointTests.cs | 7 +------ test/Microsoft.AspNetCore.SignalR.Tests/project.json | 8 ++------ 2 files changed, 3 insertions(+), 12 deletions(-) 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-*"