Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MockJedisPool not working for scala #35

Open
hanrw opened this issue Jul 10, 2015 · 0 comments
Open

MockJedisPool not working for scala #35

hanrw opened this issue Jul 10, 2015 · 0 comments

Comments

@hanrw
Copy link

hanrw commented Jul 10, 2015

Exception:
redis.clients.jedis.exceptions.JedisException: Could not return the resource to the pool
[info] at redis.clients.util.Pool.returnResourceObject(Pool.java:65)
[info] at org.sedis.Pool.withJedisClient(sedis.scala:105)
[info] at com.remarkmedia.dragon.service.infrastructure.oauth2.OauthClient$.validate(OauthClient.scala:39)
[info] at com.remarkmedia.dragon.service.infrastructure.oauth2.OauthClientSpec$$anonfun$1$$anonfun$apply$mcV$sp$1.apply$mcV$sp(OauthClientSpec.scala:23)
[info] at com.remarkmedia.dragon.service.infrastructure.oauth2.OauthClientSpec$$anonfun$1$$anonfun$apply$mcV$sp$1.apply(OauthClientSpec.scala:23)
[info] at com.remarkmedia.dragon.service.infrastructure.oauth2.OauthClientSpec$$anonfun$1$$anonfun$apply$mcV$sp$1.apply(OauthClientSpec.scala:23)

Code:
val jedisPool = new MockJedisPool(new JedisPoolConfig(), "localhost")
implicit val sedisPool = new Pool(jedisPool)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant