Skip to content

Commit f939d85

Browse files
jeanbisuttizeitlinger
authored andcommitted
Fix native tests
1 parent 2604724 commit f939d85

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

smoke-tests-otel-starter/src/test/java/io/opentelemetry/smoketest/OtelSpringStarterDisabledSmokeTest.java

+4
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
import io.opentelemetry.spring.smoketest.OtelSpringStarterSmokeTestApplication;
99
import org.junit.jupiter.api.Test;
10+
import org.junit.jupiter.api.condition.DisabledInNativeImage;
1011
import org.springframework.boot.test.context.SpringBootTest;
1112

1213
@SpringBootTest(
@@ -15,6 +16,9 @@
1516
OtelSpringStarterSmokeTest.TestConfiguration.class
1617
},
1718
properties = {"otel.sdk.disabled=true"})
19+
@DisabledInNativeImage // Without this the native tests if the OtelSpringStarterSmokeTest class will
20+
// fail with org.h2.jdbc.JdbcSQLSyntaxErrorException: Table "TEST_TABLE"
21+
// already exists
1822
class OtelSpringStarterDisabledSmokeTest {
1923

2024
@Test

0 commit comments

Comments
 (0)