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

testIsReadyWithoutPasswordWhenPasswordIsConfigured can throw IOException #54

Merged
merged 5 commits into from
Aug 6, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@
import redis.clients.jedis.exceptions.JedisAccessControlException;
import redis.clients.jedis.exceptions.JedisConnectionException;

import java.io.IOException;

import static org.hamcrest.Matchers.isA;
import static org.hamcrest.core.Is.is;
import static org.hamcrest.core.IsNot.not;
Expand Down Expand Up @@ -102,7 +104,7 @@ public void testDeleteWithoutPasswordWhenPasswordIsConfigured() throws Exception
}

@Test
public void testIsReadyWithoutPasswordWhenPasswordIsConfigured() {
public void testIsReadyWithoutPasswordWhenPasswordIsConfigured() throws IOException {
exceptionRule.expect(JedisConnectionException.class);
exceptionRule.expectMessage(NO_RESOURCE_FROM_POOL);
exceptionRule.expectCause(isA(JedisAccessControlException.class));
Expand Down