diff --git a/spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/tracing/zipkin/ZipkinHttpClientSenderTests.java b/spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/tracing/zipkin/ZipkinHttpClientSenderTests.java index b21e11cc0180..8a1f52b0c5c1 100644 --- a/spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/tracing/zipkin/ZipkinHttpClientSenderTests.java +++ b/spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/tracing/zipkin/ZipkinHttpClientSenderTests.java @@ -112,11 +112,9 @@ void sendShouldSendSpansToZipkin() throws IOException, InterruptedException { void sendShouldSendSpansToZipkinInProto3() throws IOException, InterruptedException { mockBackEnd.enqueue(new MockResponse()); List encodedSpans = List.of(toByteArray("span1"), toByteArray("span2")); - try (BytesMessageSender sender = createSender(Encoding.PROTO3, Duration.ofSeconds(10))) { sender.send(encodedSpans); } - requestAssertions((request) -> { assertThat(request.getMethod()).isEqualTo("POST"); assertThat(request.getHeader("Content-Type")).isEqualTo("application/x-protobuf"); @@ -132,7 +130,6 @@ void sendShouldSendSpansToZipkinInProto3() throws IOException, InterruptedExcept void sendUsesDynamicEndpoint() throws Exception { mockBackEnd.enqueue(new MockResponse()); mockBackEnd.enqueue(new MockResponse()); - AtomicInteger suffix = new AtomicInteger(); try (BytesMessageSender sender = createSender((e) -> new HttpEndpointSupplier() { @Override @@ -147,7 +144,6 @@ public void close() { sender.send(Collections.emptyList()); sender.send(Collections.emptyList()); } - assertThat(mockBackEnd.takeRequest().getPath()).endsWith("/1"); assertThat(mockBackEnd.takeRequest().getPath()).endsWith("/2"); }