fix: fixed DisconnectSegmentTest according to Lobby API changes
This commit is contained in:
parent
2f2bbea213
commit
a0c26bd39d
@ -80,7 +80,7 @@ class DisconnectSegmentTest {
|
||||
AtomicBoolean abort = new AtomicBoolean(false);
|
||||
disconnectSegment.processRequests(packet, new ArrayList<>(), abort);
|
||||
assertThat(packet).doesNotContain(requests);
|
||||
verify(connection).removePlayer(player1);
|
||||
verify(connection).removeParticipant(player1);
|
||||
assertThat(verify(connection).hasPlayer1()).isFalse();
|
||||
verify(connection).hasPlayer2();
|
||||
}
|
||||
@ -96,7 +96,7 @@ class DisconnectSegmentTest {
|
||||
AtomicBoolean abort = new AtomicBoolean(false);
|
||||
disconnectSegment.processRequests(packet, new ArrayList<>(), abort);
|
||||
assertThat(packet).doesNotContain(requests);
|
||||
verify(connection).removePlayer(player2);
|
||||
verify(connection).removeParticipant(player2);
|
||||
verify(connection).hasPlayer1();
|
||||
assertThat(verify(connection).hasPlayer2()).isFalse();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user