From e4817b915e0fc673863c4f20049ac6276993dc5f Mon Sep 17 00:00:00 2001 From: dengliming Date: Sat, 6 Mar 2021 22:00:17 +0800 Subject: [PATCH] Fix ScoredValueUnitTests --- src/test/java/io/lettuce/core/ScoredValueUnitTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/io/lettuce/core/ScoredValueUnitTests.java b/src/test/java/io/lettuce/core/ScoredValueUnitTests.java index 0e8970f25a..702feaddcb 100644 --- a/src/test/java/io/lettuce/core/ScoredValueUnitTests.java +++ b/src/test/java/io/lettuce/core/ScoredValueUnitTests.java @@ -118,6 +118,6 @@ void toStringShouldRenderCorrectly() { Value empty = ScoredValue.fromNullable(34, null); assertThat(value.toString()).contains("ScoredValue[12").contains("340000, hello]"); - assertThat(empty.toString()).contains("ScoredValue[0,000000].empty"); + assertThat(empty.toString()).contains(String.format("ScoredValue[%f].empty", 0d)); } }