File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed
backend/src/test/java/io/f1/backend/global/config Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change 11package io .f1 .backend .global .config ;
22
33import com .redis .testcontainers .RedisContainer ;
4+
45import org .redisson .Redisson ;
56import org .redisson .api .RedissonClient ;
67import org .redisson .config .Config ;
@@ -15,8 +16,8 @@ public class RedissonTestContainerConfig {
1516
1617 @ Container
1718 public static RedisContainer redisContainer =
18- new RedisContainer (
19- RedisContainer .DEFAULT_IMAGE_NAME .withTag (RedisContainer .DEFAULT_TAG ));
19+ new RedisContainer (
20+ RedisContainer .DEFAULT_IMAGE_NAME .withTag (RedisContainer .DEFAULT_TAG ));
2021
2122 static {
2223 redisContainer .start ();
@@ -25,12 +26,13 @@ public class RedissonTestContainerConfig {
2526 @ Bean
2627 public RedissonClient redissonClient () {
2728 Config config = new Config ();
28- String address = String .format ("redis://%s:%d" ,
29- RedissonTestContainerConfig .redisContainer .getHost (),
30- RedissonTestContainerConfig .redisContainer .getFirstMappedPort ());
29+ String address =
30+ String .format (
31+ "redis://%s:%d" ,
32+ RedissonTestContainerConfig .redisContainer .getHost (),
33+ RedissonTestContainerConfig .redisContainer .getFirstMappedPort ());
3134
32- config .useSingleServer ()
33- .setAddress (address );
35+ config .useSingleServer ().setAddress (address );
3436
3537 return Redisson .create (config );
3638 }
You can’t perform that action at this time.
0 commit comments