diff --git a/src/test/java/kr/co/studyhubinu/studyhubserver/studypost/repository/StudyPostRepositoryTest.java b/src/test/java/kr/co/studyhubinu/studyhubserver/studypost/repository/StudyPostRepositoryTest.java index 0457f935..a6f4822c 100644 --- a/src/test/java/kr/co/studyhubinu/studyhubserver/studypost/repository/StudyPostRepositoryTest.java +++ b/src/test/java/kr/co/studyhubinu/studyhubserver/studypost/repository/StudyPostRepositoryTest.java @@ -292,8 +292,9 @@ class StudyPostRepositoryTest { studyPostRepository.save(post1); studyPostRepository.save(post2); InquiryRequest inquiryRequest = InquiryRequest.builder(). - inquiryText(searchKeyword). - build(); + inquiryText(searchKeyword) + .titleAndMajor(true) + .build(); // when List posts = studyPostRepository.findByInquiry(inquiryRequest, PageRequest.of(0,2), 1L);