spring-boot-react-fullstack icon indicating copy to clipboard operation
spring-boot-react-fullstack copied to clipboard

Tests fails: Connection refused

Open antoniovillavicencio opened this issue 5 years ago • 0 comments

Hi,

When I try to build the Jar with the Demo profile (the one with the connection to AWS RDS) the test fails because of "connection refused". It seems that in order to load the context and pass the tests, it needs to have a connection to a Database. A workaround for me was to annotate the Test class with @ActiveProfiles("default") but I think is not the best solution, because I stiil have to have my local postgres running just for compiling and building the Jar.

I hope you can help me to find a better solution!

antoniovillavicencio avatar Sep 06 '20 19:09 antoniovillavicencio