diff --git a/tests/Microsoft.AspNet.SignalR.FunctionalTests/Server/Hubs/HubAuthFacts.cs b/tests/Microsoft.AspNet.SignalR.FunctionalTests/Server/Hubs/HubAuthFacts.cs index c6b19f2a4a..e039a2abea 100644 --- a/tests/Microsoft.AspNet.SignalR.FunctionalTests/Server/Hubs/HubAuthFacts.cs +++ b/tests/Microsoft.AspNet.SignalR.FunctionalTests/Server/Hubs/HubAuthFacts.cs @@ -2,13 +2,14 @@ using System.Security.Principal; using System.Threading; using Microsoft.AspNet.SignalR.Client.Hubs; +using Microsoft.AspNet.SignalR.FunctionalTests.Infrastructure; using Microsoft.AspNet.SignalR.Hosting.Memory; using Microsoft.AspNet.SignalR.Hubs; using Xunit; namespace Microsoft.AspNet.SignalR.Tests { - public class HubAuthFacts : IDisposable + public class HubAuthFacts : HostedTest { [Fact] public void UnauthenticatedUserCanReceiveHubMessagesByDefault() @@ -971,19 +972,5 @@ public void AuthenticatedAndAuthorizedUserCanInvokeAuthorizedHubMethods() connection.Stop(); } } - - protected virtual void Dispose(bool disposing) - { - if (disposing) - { - GC.Collect(); - GC.WaitForPendingFinalizers(); - } - } - - public void Dispose() - { - Dispose(true); - } } }