Skip to content

Commit

Permalink
Fix native tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanbisutti authored and zeitlinger committed Feb 27, 2024
1 parent fa1ccd0 commit fdba51a
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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
Expand Down

0 comments on commit fdba51a

Please sign in to comment.