kstyrc / embedded-redis

Redis embedded server for Java integration testing
863 stars 373 forks source link

Address already in use #101

Open StephanPraetsch opened 5 years ago

StephanPraetsch commented 5 years ago

Hi there,

if you started and not stopped a test then the embedded redis is still running. During start of your next test the test fails with the only message

java.lang.RuntimeException: Can't start redis server. Check logs for details.
    at redis.embedded.AbstractRedisInstance.awaitRedisServerReady(AbstractRedisInstance.java:61)
    at redis.embedded.AbstractRedisInstance.start(AbstractRedisInstance.java:39)
    at redis.embedded.RedisServer.start(RedisServer.java:9)
[...]

I don't know if and where the logs are. I only see one binary

> l /tmp/1546964996223-0/ 
total 4180
drwxrwxr-x  2 stephan stephan    4096 Jan  8 17:29 .
drwxrwxrwt 32 root    root      32768 Jan  8 17:30 ..
-rwxrw-r--  1 stephan stephan 4236300 Jan  8 17:29 redis-server-2.8.19

I added printing the complete input. That would have helped me by printing

[5017] 08 Jan 18:13:47.548 # Creating Server TCP listening socket *:6379: bind: Address already in use

Though it's not like my other logs

18:13:47 INFO  org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Using TestExecutionListeners ...
diogosouza commented 5 years ago

Is that still gonna be done?