Skip to content

Commit

Permalink
Disabling test in AOT mode
Browse files Browse the repository at this point in the history
  • Loading branch information
edeandrea committed Nov 27, 2023
1 parent f2775c4 commit 204f01c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ jobs:
fail-fast: false
matrix:
graal:
- { graal: '21.0.0', java: '21' }
- { graal: '17.0.8', java: '17' }
- { graal: '21.0.1', java: '21' }
- { graal: '17.0.9', java: '17' }
steps:
- uses: actions/checkout@v4

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
import java.util.Collections;

import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.condition.DisabledInNativeImage;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest;
import org.springframework.boot.test.mock.mockito.MockBean;
import org.springframework.http.MediaType;
import org.springframework.test.context.aot.DisabledInAotMode;
import org.springframework.test.web.servlet.MockMvc;
import org.springframework.util.ReflectionUtils;

Expand All @@ -27,7 +27,7 @@

@WebMvcTest(value = OutboxEventsApi.class, properties = { "spring.cloud.kubernetes.config.enabled=false" })
@AutoConfigureMockMvc(printOnlyOnFailure = false)
@DisabledInNativeImage
@DisabledInAotMode
class OutboxEventsApiTests {
private static final ObjectMapper OBJECT_MAPPER = new ObjectMapper();
private static final Album ALBUM = Album.builder()
Expand Down

0 comments on commit 204f01c

Please sign in to comment.