Skip to content

Commit

Permalink
fix: Fix test compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
angelobreuer committed Sep 29, 2023
1 parent 6cc7dc0 commit 8035192
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Lavalink4NET.Tests/LavalinkSocketTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.WebSockets;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Internal;
using Microsoft.Extensions.Logging.Abstractions;
using Microsoft.Extensions.Options;
using Xunit;
Expand All @@ -26,6 +27,9 @@ public async Task TestAuthorizationHeaderMatchesPassphraseAsync()
// Arrange
var socketFactory = new LavalinkSocketFactory(
httpMessageHandlerFactory: new HttpMessageHandlerFactory(),
reconnectStrategy: new ExponentialBackoffReconnectStrategy(
options: Options.Create(new ExponentialBackoffReconnectStrategyOptions())),
systemClock: new SystemClock(),
logger: NullLogger<LavalinkSocket>.Instance);

var builder = WebApplication.CreateBuilder();
Expand Down Expand Up @@ -78,6 +82,9 @@ public async Task TestReceiveAsync()
// Arrange
var socketFactory = new LavalinkSocketFactory(
httpMessageHandlerFactory: new HttpMessageHandlerFactory(),
reconnectStrategy: new ExponentialBackoffReconnectStrategy(
options: Options.Create(new ExponentialBackoffReconnectStrategyOptions())),
systemClock: new SystemClock(),
logger: NullLogger<LavalinkSocket>.Instance);

var builder = WebApplication.CreateBuilder();
Expand Down

0 comments on commit 8035192

Please sign in to comment.