This is an automated email from the ASF dual-hosted git repository.

albumenj pushed a commit to branch 3.3
in repository https://gitbox.apache.org/repos/asf/dubbo.git


The following commit(s) were added to refs/heads/3.3 by this push:
     new d1d4c745ac Fix compile
d1d4c745ac is described below

commit d1d4c745ac089801a96493853159ad3b589d988b
Author: Albumen Kevin <[email protected]>
AuthorDate: Fri Aug 9 16:48:04 2024 +0800

    Fix compile
---
 .../org/apache/dubbo/rpc/protocol/dubbo/pu/DubboDetectorTest.java   | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git 
a/dubbo-rpc/dubbo-rpc-dubbo/src/test/java/org/apache/dubbo/rpc/protocol/dubbo/pu/DubboDetectorTest.java
 
b/dubbo-rpc/dubbo-rpc-dubbo/src/test/java/org/apache/dubbo/rpc/protocol/dubbo/pu/DubboDetectorTest.java
index 3c433740aa..11ad5eeb88 100644
--- 
a/dubbo-rpc/dubbo-rpc-dubbo/src/test/java/org/apache/dubbo/rpc/protocol/dubbo/pu/DubboDetectorTest.java
+++ 
b/dubbo-rpc/dubbo-rpc-dubbo/src/test/java/org/apache/dubbo/rpc/protocol/dubbo/pu/DubboDetectorTest.java
@@ -28,20 +28,20 @@ class DubboDetectorTest {
     void testDetect_Recognized() {
         DubboDetector detector = new DubboDetector();
         ChannelBuffer in = ChannelBuffers.wrappedBuffer(new byte[] {(byte) 
0xda, (byte) 0xbb});
-        assertEquals(DubboDetector.Result.RECOGNIZED, detector.detect(in));
+        assertEquals(DubboDetector.Result.recognized(), detector.detect(in));
     }
 
     @Test
     void testDetect_Unrecognized() {
         DubboDetector detector = new DubboDetector();
         ChannelBuffer in = ChannelBuffers.wrappedBuffer(new byte[] {(byte) 
0x00, (byte) 0x00});
-        assertEquals(DubboDetector.Result.UNRECOGNIZED, detector.detect(in));
+        assertEquals(DubboDetector.Result.unrecognized(), detector.detect(in));
     }
 
     @Test
     void testDetect_NeedMoreData() {
         DubboDetector detector = new DubboDetector();
         ChannelBuffer in = ChannelBuffers.wrappedBuffer(new byte[] {(byte) 
0xda});
-        assertEquals(DubboDetector.Result.NEED_MORE_DATA, detector.detect(in));
+        assertEquals(DubboDetector.Result.needMoreData(), detector.detect(in));
     }
 }

Reply via email to