Closed shailesh-waman closed 2 years ago
I have the same error.
openjdk version "1.8.0_292" OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_292-b10) OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.292-b10, mixed mode)
2.3.12.RELEASE
testCompile "io.zonky.test:embedded-database-spring-test:1.6.3
I had a similar issue.
Dependency: testImplementation("io.zonky.test:embedded-database-spring-test:2.1.1")
It started happening to me after upgrading to macOS Monterey 12.0.1.
You can resolve problem by using embedded-postgres-binaries-bom
. https://github.com/zonkyio/embedded-postgres-binaries#postgres-version
For gradle users:
mavenBom("io.zonky.test.postgres:embedded-postgres-binaries-bom:11.14.0")
For maven users:
<dependencyManagement>
<dependencies>
<dependency>
<groupId>io.zonky.test.postgres</groupId>
<artifactId>embedded-postgres-binaries-bom</artifactId>
<version>11.14.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
@mkamilli42 will that still works on different OS?
Hi @shailesh-waman, thank you for the report. I guess that the problem could be related to the following issue: https://github.com/zonkyio/embedded-postgres/issues/78 If so, you need to upgrade to a newer major version of postgres binaries. Version 11.13.0
and above should works.
@mkamilli42 This problem should only affect macOS platform, version 12 and above.
same issue with v.2.5.1
testImplementation 'io.zonky.test:embedded-database-spring-test:2.5.1'
testImplementation 'io.zonky.test:embedded-postgres:2.0.7'
testImplementation 'io.zonky.test.postgres:embedded-postgres-binaries-bom:16.2.0'
and annotation
@DataJpaTest
@AutoConfigureEmbeddedDatabase(type = POSTGRES, provider = ZONKY, refresh = BEFORE_EACH_TEST_METHOD)
public abstract class TestBase {
...
}
@webcane Please open a new issue with more details. Thank you.
Hello Team,
I am facing an issue while running embedded test in SpringBoot both while running through Intellij as well as from CLI, I have tried to follow the logs and checked that the embedded postgres file exist at the given location and also it starts running after the initdb when executed manually, however through Junit5 test it's not working.
Following are the log and other information.
macOS Monterey 12.0.1
2.3.3.RELEASE
Dependency :
testImplementation("io.zonky.test:embedded-database-spring-test:1.6.3")
Log Details
Can you please help or guide to fix this issue?
Thank you!