Skip to content

Commit

Permalink
chore: version 어노테이션 추가로 테스트 통과
Browse files Browse the repository at this point in the history
  • Loading branch information
mirageoasis committed Aug 27, 2024
1 parent 64e7278 commit c205f94
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public class Seat extends BaseEntity {
@Column(length = 16, nullable = false)
private SeatStatus seatStatus = SeatStatus.SELECTABLE;

private Long version;
@Version private Long version;

public Seat(String seatCode, SeatStatus seatStatus) {
this.seatCode = seatCode;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ void setUp() {
.seatCode("R")
.seatStatus(SeatStatus.SELECTABLE)
.build());
// seat의 id가
RedisSeat redisSeat = new RedisSeat(seat.getSeatId(), null, SeatStatus.SELECTABLE);
lettuceSeatRepository.update(redisSeat);
}

@AfterEach
Expand All @@ -104,6 +107,7 @@ void breakUp() {
seatGradeRepository.deleteAll();
performanceRepository.deleteAll();
memberRepository.deleteAll();
stringRedisTemplate.getConnectionFactory().getConnection().flushAll();
}

@Test
Expand Down

0 comments on commit c205f94

Please sign in to comment.