From 3c0f8f64900467b7b9bc8cd45876117ef8b9f017 Mon Sep 17 00:00:00 2001 From: Ryan Baxter Date: Tue, 14 Dec 2021 14:54:10 -0500 Subject: [PATCH] Fixing failing test when using latest stream and function releases --- pom.xml | 4 ++-- .../instrument/messaging/TraceFunctionAroundWrapperTests.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index 37c80141e..9d1e6a5c4 100644 --- a/pom.xml +++ b/pom.xml @@ -66,8 +66,8 @@ 3.0.5-SNAPSHOT 3.0.5-SNAPSHOT 2.0.3-SNAPSHOT - 3.1.4 - 3.1.4 + 3.1.6 + 3.1.6 3.0.5-SNAPSHOT 3.0.5-SNAPSHOT 5.13.2 diff --git a/tests/common/src/main/java/org/springframework/cloud/sleuth/instrument/messaging/TraceFunctionAroundWrapperTests.java b/tests/common/src/main/java/org/springframework/cloud/sleuth/instrument/messaging/TraceFunctionAroundWrapperTests.java index df29fcc70..c944729b8 100644 --- a/tests/common/src/main/java/org/springframework/cloud/sleuth/instrument/messaging/TraceFunctionAroundWrapperTests.java +++ b/tests/common/src/main/java/org/springframework/cloud/sleuth/instrument/messaging/TraceFunctionAroundWrapperTests.java @@ -55,7 +55,7 @@ public abstract class TraceFunctionAroundWrapperTests { Message result = (Message) function.get(); - assertThat(result.getPayload()).isEqualTo("hello".getBytes()); + assertThat(result.getPayload()).isEqualTo("hello"); assertThat(spanHandler.reportedSpans().size()).isEqualTo(2); assertThat(((String) result.getHeaders().get("b3"))).contains(spanHandler.get(0).getTraceId()); spanHandler.assertAllSpansWereFinishedOrAbandoned(context.getBean(TestTracer.class).createdSpans());