Skip to content

Commit

Permalink
Add missing timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
sesposito committed Apr 23, 2024
1 parent 86ce88a commit c1533c1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Nakama.Tests/Socket/WebSocketPartyTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ public async Task LeaderAndMembersShouldReceiveTicket()
await socket2.CloseAsync();
}

[Fact (Skip = "requires server configs --session.single_socket=true && --session.single_party=true")]
[Fact (Timeout = TestsUtil.TIMEOUT_MILLISECONDS, Skip = "requires server configs --session.single_socket=true && --session.single_party=true")]
public async Task SinglePartyShouldRemoveFromOtherParties()
{
var session1 = await _client.AuthenticateCustomAsync($"{Guid.NewGuid()}");
Expand All @@ -424,7 +424,7 @@ public async Task SinglePartyShouldRemoveFromOtherParties()

await socket1.ConnectAsync(session1);
await socket2.ConnectAsync(session2);

var party = await socket1.CreatePartyAsync(true, 2);

var socket2PresenceTcs = new TaskCompletionSource<IUserPresence>();
Expand All @@ -442,15 +442,15 @@ public async Task SinglePartyShouldRemoveFromOtherParties()
socket2LeaveTcs.SetResult(session2Leave);
}
};

await socket2.JoinPartyAsync(party.Id);

await socket2PresenceTcs.Task;

await socket2.CreatePartyAsync(true, 2);

await socket2LeaveTcs.Task;

Assert.True(socket2PresenceTcs.Task.IsCompleted);
Assert.True(socket2LeaveTcs.Task.IsCompleted);
}
Expand Down

0 comments on commit c1533c1

Please sign in to comment.