Skip to content

Commit 2541c0c

Browse files
committed
Disable on Windows tests that use embedded Kafka
Closes gh-28406
1 parent 11a8636 commit 2541c0c

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/kafka/KafkaAutoConfigurationIntegrationTests.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2020 the original author or authors.
2+
* Copyright 2012-2021 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.
@@ -28,6 +28,8 @@
2828
import org.apache.kafka.streams.kstream.Materialized;
2929
import org.junit.jupiter.api.AfterEach;
3030
import org.junit.jupiter.api.Test;
31+
import org.junit.jupiter.api.condition.DisabledOnOs;
32+
import org.junit.jupiter.api.condition.OS;
3133

3234
import org.springframework.boot.test.util.TestPropertyValues;
3335
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
@@ -52,6 +54,7 @@
5254
* @author Gary Russell
5355
* @author Stephane Nicoll
5456
*/
57+
@DisabledOnOs(OS.WINDOWS)
5558
@EmbeddedKafka(topics = KafkaAutoConfigurationIntegrationTests.TEST_TOPIC)
5659
class KafkaAutoConfigurationIntegrationTests {
5760

spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-kafka/src/test/java/smoketest/kafka/SampleKafkaApplicationTests.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020

2121
import org.awaitility.Awaitility;
2222
import org.junit.jupiter.api.Test;
23+
import org.junit.jupiter.api.condition.DisabledOnOs;
24+
import org.junit.jupiter.api.condition.OS;
2325

2426
import org.springframework.beans.factory.annotation.Autowired;
2527
import org.springframework.boot.test.context.SpringBootTest;
@@ -36,6 +38,7 @@
3638
* @author Gary Russell
3739
* @author Stephane Nicoll
3840
*/
41+
@DisabledOnOs(OS.WINDOWS)
3942
@SpringBootTest(properties = "spring.kafka.bootstrap-servers=${spring.embedded.kafka.brokers}")
4043
@EmbeddedKafka(topics = "testTopic")
4144
class SampleKafkaApplicationTests {

0 commit comments

Comments
 (0)