Skip to content

Commit

Permalink
[BE] test(#609): test
Browse files Browse the repository at this point in the history
  • Loading branch information
j-ra1n committed Sep 6, 2024
1 parent 5c782d3 commit d508640
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class RankingServiceTest extends MockTestConfig {
private ZSetOperations<String, Object> zSetOperations;

@Autowired
private RedisTemplate<String, Object> redisTemplate;
private RedisTemplate<String, Object> redisTemplateDb1;

@Autowired
private StudyInfoRepository studyInfoRepository;
Expand All @@ -42,14 +42,14 @@ public class RankingServiceTest extends MockTestConfig {

@BeforeEach
void setUp() {
// when(redisTemplate.opsForZSet()).thenReturn(zSetOperations);
// when(redisTemplateDb1.opsForZSet()).thenReturn(zSetOperations);
}

@AfterEach
void tearDown() {
userRepository.deleteAllInBatch();
redisTemplate.delete(USER_RANKING_KEY);
redisTemplate.delete(STUDY_RANKING_KEY);
redisTemplateDb1.delete(USER_RANKING_KEY);
redisTemplateDb1.delete(STUDY_RANKING_KEY);
}

@Test
Expand Down

0 comments on commit d508640

Please sign in to comment.