Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Commit

Permalink
chore: fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
nemo83 committed Oct 29, 2024
1 parent cf0cac1 commit 983e354
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,9 @@ void testGetAllEpoch_thenReturn() {
Optional.of(Block.builder().time(Timestamp.valueOf(LocalDateTime.now())).build()));
ReflectionTestUtils.setField(epochService, "network", "mainnet");

when(redisTemplate.opsForHash()).thenReturn(hashOperations);
when(hashOperations.size(any())).thenReturn(0l);

var response = epochService.getAllEpoch(pageable);
Assertions.assertEquals(response.getTotalItems(), 1);
Assertions.assertEquals(response.getTotalPages(), 1);
Expand Down

0 comments on commit 983e354

Please sign in to comment.