Skip to content

Commit bc3fd2b

Browse files
committed
♻️ test 수정
1 parent 4abe282 commit bc3fd2b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

backend/src/test/java/io/f1/backend/domain/game/app/RoomServiceTests.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package io.f1.backend.domain.game.app;
22

33
import static org.assertj.core.api.Assertions.assertThat;
4+
import static org.mockito.Mockito.verify;
45
import static org.mockito.Mockito.when;
56

67
import io.f1.backend.domain.game.dto.request.RoomValidationRequest;
@@ -157,7 +158,7 @@ void exitRoom_synchronized() throws Exception {
157158
});
158159
}
159160
countDownLatch.await();
160-
assertThat(room.getCurrentUserCnt()).isEqualTo(1);
161+
verify(roomRepository).removeRoom(roomId);
161162
}
162163

163164
private Room createRoom(

0 commit comments

Comments
 (0)