From 3785c8d3db0ac73d6029804b8d4d3ae5c25dd392 Mon Sep 17 00:00:00 2001 From: Albumen Kevin Date: Tue, 29 Oct 2024 15:16:54 +0800 Subject: [PATCH] Fix Radix Test case on jdk 8~17 --- .../dubbo/rpc/protocol/tri/rest/mapping/RadixTreeTest.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'