Skip to content

Commit

Permalink
redis client test
Browse files Browse the repository at this point in the history
  • Loading branch information
Alonexc committed Apr 10, 2024
1 parent 0cee8a4 commit 64b8d9f
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,17 @@
@Slf4j
class SDKManagerTest {

private final CreateRedisConfig createRedisConfig = new CreateRedisConfig();
private String redisKey;

@BeforeEach
void setUp() {
try {
createRedisConfig.setRedisUrl("redis://localhost:6379");
CreateRedisConfig createRedisConfig = CreateRedisConfig.builder()
.redisUrl("localhost:6379")
.password("")
.timeOut(30)
.build();
// createRedisConfig.setRedisUrl("redis://localhost:6379");
redisKey = SDKManager.getInstance().createClient(SDKTypeEnum.STORAGE_REDIS, createRedisConfig).getKey();
} catch (Exception e) {
log.warn("SDK manager test init failed, possible reason: redis-server is offline. {}", this.getClass().getSimpleName(), e);
Expand Down

0 comments on commit 64b8d9f

Please sign in to comment.