JAVA-18812 Disabled reuse forks option that was causing issue with SimpleTracer test (#14490)

This commit is contained in:
Dhawal Kapil 2023-07-28 23:26:56 +05:30 committed by GitHub
parent 53aea2f855
commit 901e94d234
1 changed files with 27 additions and 3 deletions

View File

@ -4,7 +4,6 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>spring-boot-3-observation</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>spring-boot-3-observation</name>
<description>Demo project for Spring Boot 3 Observation</description>
@ -32,7 +31,7 @@
<dependency>
<groupId>io.micrometer</groupId>
<artifactId>micrometer-tracing-bridge-brave</artifactId>
<!--artifactId>micrometer-tracing-bridge-otel</artifactId-->
<!--artifactId>micrometer-tracing-bridge-otel</artifactId -->
</dependency>
<dependency>
<groupId>io.micrometer</groupId>
@ -62,7 +61,7 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jdbc</artifactId>
</dependency>
<!-- get latest version from https://github.com/gavlyukovskiy/spring-boot-data-source-decorator/releases-->
<!-- get latest version from https://github.com/gavlyukovskiy/spring-boot-data-source-decorator/releases -->
<dependency>
<groupId>com.github.gavlyukovskiy</groupId>
<artifactId>p6spy-spring-boot-starter</artifactId>
@ -82,6 +81,31 @@
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<forkCount>3</forkCount>
<reuseForks>false</reuseForks>
</configuration>
<dependencies>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>${junit-jupiter.version}</version>
</dependency>
<dependency>
<groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>
<version>${junit-jupiter.version}</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
<properties>
<start-class>com.baeldung.samples.SimpleObservationApplication</start-class>
<p6spy-spring-boot-starter.version>1.9.0</p6spy-spring-boot-starter.version>