From bdada69d673964b3d6054c1e9588aa93c80cb63d Mon Sep 17 00:00:00 2001 From: Gary Russell Date: Wed, 7 Dec 2022 16:16:32 -0500 Subject: [PATCH] GH-2501: Fix Race in Test --- .../kafka/annotation/EnableKafkaIntegrationTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-kafka/src/test/java/org/springframework/kafka/annotation/EnableKafkaIntegrationTests.java b/spring-kafka/src/test/java/org/springframework/kafka/annotation/EnableKafkaIntegrationTests.java index a0e0c191..704fc997 100644 --- a/spring-kafka/src/test/java/org/springframework/kafka/annotation/EnableKafkaIntegrationTests.java +++ b/spring-kafka/src/test/java/org/springframework/kafka/annotation/EnableKafkaIntegrationTests.java @@ -2210,8 +2210,8 @@ public class EnableKafkaIntegrationTests { public void projectionListener(ProjectionSample sample) { this.username = sample.getUsername(); this.name = sample.getName(); - this.projectionLatch.countDown(); this.customThreadName = Thread.currentThread().getName(); + this.projectionLatch.countDown(); } @KafkaListener(id = "customMethodArgumentResolver", topics = "annotated39")