Skip to content

Commit

Permalink
✅ [Test] 매칭 record 검증 optional 관련 수정 사항 반영
Browse files Browse the repository at this point in the history
  • Loading branch information
rimi3226 committed Feb 7, 2025
1 parent 5afa0b2 commit d2ef390
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -298,11 +298,8 @@ void getPriorityListAndCheckRecord() {
assertThat(updatedMember.getWantP()).isEqualTo(request.getWantP());

// 2. 생성된 MatchingRecord 검증
Optional<MatchingRecord> actualMatchingRecord = matchingRecordRepository.findLatestByMember(updatedMember);

Optional<MatchingRecord> matchingRecordOptional = matchingRecordRepository.findLatestByMember(updatedMember);
Optional<MatchingRecord> matchingRecordOptional = matchingRecordRepository.findLatestByMember(updatedMember);
MatchingRecord actualMatchingRecord = matchingRecordOptional.orElseThrow();

assertThat(actualMatchingRecord.getGameMode()).isEqualTo(request.getGameMode());
assertThat(actualMatchingRecord.getMatchingType()).isEqualTo(request.getMatchingType());
assertThat(actualMatchingRecord.getStatus()).isEqualTo(MatchingStatus.PENDING);
Expand Down

0 comments on commit d2ef390

Please sign in to comment.