diff --git a/module-domain/src/test/java/com/depromeet/service/followinglog/FollowingMemoryLogServiceTest.java b/module-domain/src/test/java/com/depromeet/service/followinglog/FollowingMemoryLogServiceTest.java index a832546c..df97c29d 100644 --- a/module-domain/src/test/java/com/depromeet/service/followinglog/FollowingMemoryLogServiceTest.java +++ b/module-domain/src/test/java/com/depromeet/service/followinglog/FollowingMemoryLogServiceTest.java @@ -62,7 +62,7 @@ void init() { assertThat(result.size()).isEqualTo(10); assertThat(followingMemoryLogIds).isSortedAccordingTo(Comparator.reverseOrder()); assertThat(followingLogSlice.isHasNext()).isTrue(); - assertThat(followingLogSlice.getCursorId()).isEqualTo(11L); + assertThat(followingLogSlice.getCursorId()).isEqualTo(10L); } @Test @@ -72,7 +72,7 @@ void init() { // when FollowingLogSlice followingLogSlice = - followingMemoryLogService.findLogsByMemberIdAndCursorId(memberId, 11L); + followingMemoryLogService.findLogsByMemberIdAndCursorId(memberId, 10L); // then List result = followingLogSlice.getContents(); @@ -100,7 +100,7 @@ private void saveFollowingMemoryLogs() { private List getMembers() { List members = new ArrayList<>(); long followingMemberId = 2L; - for (int i = 2; i <= 20; i++) { + for (int i = 0; i < 19; i++) { Member followings = MemberFixture.make(followingMemberId++); members.add(followings); }