Skip to content

Commit 9f72ce1

Browse files
committed
CLAP-355 Fix: 테스트 코드 수정
<footer> - #448
1 parent 92fc430 commit 9f72ce1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/java/clap/server/application/service/auth/AuthServiceTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ void loginSuccess() {
6767
assertNotNull(response);
6868
assertEquals(jwtTokens.accessToken(), response.accessToken());
6969
assertEquals(jwtTokens.refreshToken(), response.refreshToken());
70-
verify(loginAttemptService).resetFailedAttempts(clientIp);
70+
verify(loginAttemptService).resetFailedAttempts(nickname);
7171
verify(refreshTokenService).saveRefreshToken(any());
7272
}
7373

@@ -85,7 +85,7 @@ void loginFailureWrongPassword() {
8585

8686
// When & Then
8787
assertThrows(AuthException.class, () -> authService.login(nickname, inputPassword, clientIp));
88-
verify(loginAttemptService).recordFailedAttempt(clientIp, nickname);
88+
verify(loginAttemptService).recordFailedAttempt(nickname, clientIp);
8989
}
9090

9191

0 commit comments

Comments
 (0)