Skip to content

Commit 1d15e8c

Browse files
committed
Disable SampleMongoApplicationTests on Linux aarch64
See gh-30082
1 parent acdfa31 commit 1d15e8c

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-data-mongodb/build.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ dependencies {
1111
runtimeOnly("de.flapdoodle.embed:de.flapdoodle.embed.mongo")
1212

1313
testImplementation(project(":spring-boot-project:spring-boot-starters:spring-boot-starter-test"))
14+
testImplementation(project(":spring-boot-project:spring-boot-tools:spring-boot-test-support"))
1415
}

spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-data-mongodb/src/test/java/smoketest/data/mongo/SampleMongoApplicationTests.java

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2019 the original author or authors.
2+
* Copyright 2012-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -17,11 +17,13 @@
1717
package smoketest.data.mongo;
1818

1919
import org.junit.jupiter.api.Test;
20+
import org.junit.jupiter.api.condition.OS;
2021
import org.junit.jupiter.api.extension.ExtendWith;
2122

2223
import org.springframework.boot.test.context.SpringBootTest;
2324
import org.springframework.boot.test.system.CapturedOutput;
2425
import org.springframework.boot.test.system.OutputCaptureExtension;
26+
import org.springframework.boot.testsupport.junit.DisabledOnOs;
2527

2628
import static org.assertj.core.api.Assertions.assertThat;
2729

@@ -33,6 +35,8 @@
3335
*/
3436
@ExtendWith(OutputCaptureExtension.class)
3537
@SpringBootTest
38+
@DisabledOnOs(os = OS.LINUX, architecture = "aarch64",
39+
disabledReason = "Embedded Mongo doesn't support Linux aarch64, see https://github.com/flapdoodle-oss/de.flapdoodle.embed.mongo/issues/379")
3640
class SampleMongoApplicationTests {
3741

3842
@Test

0 commit comments

Comments
 (0)