Skip to content

Commit

Permalink
fix(test): properly close embedded redis
Browse files Browse the repository at this point in the history
  • Loading branch information
robfletcher committed May 9, 2017
1 parent 5a5b280 commit ffce870
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import redis.clients.util.Pool
@Configuration
class EmbeddedRedisConfiguration {

@Bean
@Bean(destroyMethod = "destroy")
EmbeddedRedis redisServer() {
def redis = EmbeddedRedis.embed()
redis.jedis.withCloseable { Jedis jedis ->
Expand Down

0 comments on commit ffce870

Please sign in to comment.