Skip to content

Commit

Permalink
[Test]: 리프래시토큰으로 인한 테스트 꺠짐 수정 (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
bayy1216 committed Sep 5, 2024
1 parent 44c2646 commit da94a6c
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package org.haedal.zzansuni.auth.domain;

import jakarta.persistence.EntityManager;
import org.haedal.zzansuni.auth.infrastructure.RefreshTokenRepository;
import org.haedal.zzansuni.user.domain.User;
import org.haedal.zzansuni.user.domain.UserModel;
import org.haedal.zzansuni.global.jwt.JwtToken;
Expand All @@ -24,10 +25,12 @@
class AuthServiceTest {
@Autowired private AuthService authService;
@Autowired private UserRepository userRepository;
@Autowired private RefreshTokenRepository refreshTokenRepository;
@Autowired private EntityManager em;

@AfterEach
void tearDown() {
refreshTokenRepository.deleteAll();
userRepository.deleteAll();
}

Expand Down

0 comments on commit da94a6c

Please sign in to comment.