diff --git a/smoke-tests-otel-starter/src/test/java/io/opentelemetry/smoketest/OtelSpringStarterDisabledSmokeTest.java b/smoke-tests-otel-starter/src/test/java/io/opentelemetry/smoketest/OtelSpringStarterDisabledSmokeTest.java index d6485fab5a50..cc72943a608c 100644 --- a/smoke-tests-otel-starter/src/test/java/io/opentelemetry/smoketest/OtelSpringStarterDisabledSmokeTest.java +++ b/smoke-tests-otel-starter/src/test/java/io/opentelemetry/smoketest/OtelSpringStarterDisabledSmokeTest.java @@ -7,6 +7,7 @@ import io.opentelemetry.spring.smoketest.OtelSpringStarterSmokeTestApplication; import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.condition.DisabledInNativeImage; import org.springframework.boot.test.context.SpringBootTest; @SpringBootTest( @@ -15,6 +16,9 @@ OtelSpringStarterSmokeTest.TestConfiguration.class }, properties = {"otel.sdk.disabled=true"}) +@DisabledInNativeImage // Without this the native tests if the OtelSpringStarterSmokeTest class will +// fail with org.h2.jdbc.JdbcSQLSyntaxErrorException: Table "TEST_TABLE" +// already exists class OtelSpringStarterDisabledSmokeTest { @Test