From 2bea4608fac6f3fa599e7f7da8502012ff313f5d Mon Sep 17 00:00:00 2001 From: BrennanConroy Date: Mon, 22 Oct 2018 20:32:53 -0700 Subject: [PATCH] Fix tests to use dynamic ports (#3177) --- test/Microsoft.AspNetCore.SignalR.Tests/MapSignalRTests.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/Microsoft.AspNetCore.SignalR.Tests/MapSignalRTests.cs b/test/Microsoft.AspNetCore.SignalR.Tests/MapSignalRTests.cs index 5895333d8f..e15e77a6dc 100644 --- a/test/Microsoft.AspNetCore.SignalR.Tests/MapSignalRTests.cs +++ b/test/Microsoft.AspNetCore.SignalR.Tests/MapSignalRTests.cs @@ -45,7 +45,8 @@ namespace Microsoft.AspNetCore.SignalR.Tests Assert.Equal("Unable to find the required services. Please add all the required services by calling " + "'IServiceCollection.AddSignalR' inside the call to 'ConfigureServices(...)' in the application startup code.", ex.Message); - }); + }) + .UseUrls("http://127.0.0.1:0"); using (var host = builder.Build()) { @@ -137,6 +138,7 @@ namespace Microsoft.AspNetCore.SignalR.Tests { app.UseSignalR(options => configure(options)); }) + .UseUrls("http://127.0.0.1:0") .Build(); } }