From b1eb19e0a91fb59a5e9362584f17e4c9a8a6f10c Mon Sep 17 00:00:00 2001 From: Moritz Halbritter Date: Wed, 14 Feb 2024 17:13:18 +0100 Subject: [PATCH] WIP Formatting --- .../tracing/zipkin/ZipkinHttpClientSenderTests.java | 4 ---- 1 file changed, 4 deletions(-) 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"); }