diff --git a/sentinel-core/src/test/java/com/alibaba/csp/sentinel/util/function/Tuple2Test.java b/sentinel-core/src/test/java/com/alibaba/csp/sentinel/util/function/Tuple2Test.java index f9af8a5158..c07c47121a 100644 --- a/sentinel-core/src/test/java/com/alibaba/csp/sentinel/util/function/Tuple2Test.java +++ b/sentinel-core/src/test/java/com/alibaba/csp/sentinel/util/function/Tuple2Test.java @@ -9,6 +9,6 @@ public class Tuple2Test { public void testSwap() { Tuple2 tupleOld = new Tuple2(1, 2); Tuple2 tupleNew = tupleOld.swap(); - Assert.assertEquals(new Tuple2(2, 1), tupleNew); + Assert.assertEquals("Tuple2{r1=2, r2=1}", tupleNew.toString()); } }