Skip to content

Commit

Permalink
fix: Fix users inactivity tracker test
Browse files Browse the repository at this point in the history
  • Loading branch information
angelobreuer committed Aug 15, 2023
1 parent ff00691 commit 83ce137
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ public async Task CheckPlayerConsideredActiveWhenThresholdReachedAsync()
=> x.GetChannelUsersAsync(It.IsAny<ulong>(), It.IsAny<ulong>(), false, It.IsAny<CancellationToken>())
== ValueTask.FromResult(userIds));

var player = Mock.Of<ILavalinkPlayer>(x => x.State == PlayerState.Playing);
var player = Mock.Of<ILavalinkPlayer>(x
=> x.State == PlayerState.Playing
&& x.VoiceChannelId == 123UL);

var context = new InactivityTrackingContext(
InactivityTrackingService: inactivityTrackingService,
Expand Down

0 comments on commit 83ce137

Please sign in to comment.