@@ -21,7 +21,7 @@ public class RedisServerTest {
2121
2222 @ Test (timeout = 1500L )
2323 public void testSimpleRun () throws Exception {
24- redisServer = new RedisServer (6379 );
24+ redisServer = new RedisServer (6381 );
2525 redisServer .start ();
2626 Thread .sleep (1000L );
2727 redisServer .stop ();
@@ -30,7 +30,7 @@ public void testSimpleRun() throws Exception {
3030 @ Test
3131 public void shouldAllowMultipleRunsWithoutStop () throws IOException {
3232 try {
33- redisServer = new RedisServer (6379 );
33+ redisServer = new RedisServer (6381 );
3434 redisServer .start ();
3535 redisServer .start ();
3636 } finally {
@@ -40,7 +40,7 @@ public void shouldAllowMultipleRunsWithoutStop() throws IOException {
4040
4141 @ Test
4242 public void shouldAllowSubsequentRuns () throws IOException {
43- redisServer = new RedisServer (6379 );
43+ redisServer = new RedisServer (6381 );
4444 redisServer .start ();
4545 redisServer .stop ();
4646
@@ -53,10 +53,10 @@ public void shouldAllowSubsequentRuns() throws IOException {
5353
5454 @ Test
5555 public void testSimpleOperationsAfterRun () throws IOException {
56- redisServer = new RedisServer (6379 );
56+ redisServer = new RedisServer (6381 );
5757 redisServer .start ();
5858
59- try (final JedisPool pool = new JedisPool ("localhost" , 6379 );
59+ try (final JedisPool pool = new JedisPool ("localhost" , 6381 );
6060 final Jedis jedis = pool .getResource ()) {
6161 jedis .mset ("abc" , "1" , "def" , "2" );
6262
@@ -70,21 +70,21 @@ public void testSimpleOperationsAfterRun() throws IOException {
7070
7171 @ Test
7272 public void shouldIndicateInactiveBeforeStart () throws IOException {
73- redisServer = new RedisServer (6379 );
73+ redisServer = new RedisServer (6381 );
7474 assertFalse (redisServer .isActive ());
7575 }
7676
7777 @ Test
7878 public void shouldIndicateActiveAfterStart () throws IOException {
79- redisServer = new RedisServer (6379 );
79+ redisServer = new RedisServer (6381 );
8080 redisServer .start ();
8181 assertTrue (redisServer .isActive ());
8282 redisServer .stop ();
8383 }
8484
8585 @ Test
8686 public void shouldIndicateInactiveAfterStop () throws IOException {
87- redisServer = new RedisServer (6379 );
87+ redisServer = new RedisServer (6381 );
8888 redisServer .start ();
8989 redisServer .stop ();
9090 assertFalse (redisServer .isActive ());
0 commit comments