diff --git a/dubbo-rpc/dubbo-rpc-triple/src/test/groovy/org/apache/dubbo/rpc/protocol/tri/rest/mapping/RadixTreeTest.groovy b/dubbo-rpc/dubbo-rpc-triple/src/test/groovy/org/apache/dubbo/rpc/protocol/tri/rest/mapping/RadixTreeTest.groovy index 4966e7b7ab4..37cbb35c9ce 100644 --- a/dubbo-rpc/dubbo-rpc-triple/src/test/groovy/org/apache/dubbo/rpc/protocol/tri/rest/mapping/RadixTreeTest.groovy +++ b/dubbo-rpc/dubbo-rpc-triple/src/test/groovy/org/apache/dubbo/rpc/protocol/tri/rest/mapping/RadixTreeTest.groovy @@ -65,7 +65,7 @@ class RadixTreeTest extends Specification { tree.addPath("/update/{ruleId}", "a") tree.addPath("/update/{ruleId}/state", "b") expect: - tree.match(path).first.value == result + tree.match(path).get(0).value == result where: path | result '/update/1222222' | 'a'