Skip to content

Commit

Permalink
GH-1444: Remove Unused Field from Test
Browse files Browse the repository at this point in the history
  • Loading branch information
garyrussell committed Sep 19, 2022
1 parent 66e5c11 commit 57276fc
Showing 1 changed file with 1 addition and 4 deletions.
Expand Up @@ -22,6 +22,7 @@
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit;

import org.springframework.amqp.core.Message;
import org.springframework.amqp.rabbit.annotation.EnableRabbit;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.amqp.rabbit.config.SimpleRabbitListenerContainerFactory;
Expand All @@ -32,7 +33,6 @@
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.messaging.Message;

import io.micrometer.common.KeyValues;
import io.micrometer.core.tck.MeterRegistryAssert;
Expand Down Expand Up @@ -132,8 +132,6 @@ public static class Listener {

final CountDownLatch latch1 = new CountDownLatch(1);

volatile Message message;

public Listener(RabbitTemplate template) {
this.template = template;
}
Expand All @@ -145,7 +143,6 @@ void listen1(Message in) {

@RabbitListener(id = "obs2", queues = "int.observation.testQ2")
void listen2(Message in) {
this.message = in;
this.latch1.countDown();
}

Expand Down

0 comments on commit 57276fc

Please sign in to comment.