tests: fix up test project after major refactor

This commit is contained in:
Stevan Freeborn
2025-05-18 12:23:00 -05:00
parent 9af7522c29
commit bb1fadeac0
3 changed files with 37 additions and 10 deletions
@@ -2,9 +2,7 @@ using WebSocket = System.Net.WebSockets.WebSocket;
namespace StevesBot.Worker.Tests.Integration.Infrastructure;
# pragma warning disable CA1001
public sealed class TestWebSocketServer : IAsyncLifetime
public sealed class TestWebSocketServer : IAsyncLifetime, IDisposable
{
private readonly IWebHost _host;
private readonly CancellationTokenSource _echoCts = new();
@@ -111,4 +109,9 @@ public sealed class TestWebSocketServer : IAsyncLifetime
webSocket.Dispose();
}
}
public void Dispose()
{
_host.Dispose();
}
}