From 4aa7dac8d20c65753a0c0fd9d26e1cadb0ea946b Mon Sep 17 00:00:00 2001 From: zfCode Date: Thu, 15 Dec 2022 22:59:51 +0800 Subject: [PATCH] fix test failed --- pkg/remoting/getty/getty_client_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/remoting/getty/getty_client_test.go b/pkg/remoting/getty/getty_client_test.go index 986c18495..89ae2dd1b 100644 --- a/pkg/remoting/getty/getty_client_test.go +++ b/pkg/remoting/getty/getty_client_test.go @@ -22,9 +22,11 @@ import ( "reflect" "testing" + "github.com/seata/seata-go/pkg/protocol/codec" + "github.com/seata/seata-go/pkg/protocol/message" + "github.com/agiledragon/gomonkey" getty "github.com/apache/dubbo-getty" - "github.com/seata/seata-go/pkg/protocol/message" "github.com/stretchr/testify/assert" ) @@ -86,6 +88,7 @@ func TestGettyRemotingClient_SendAsyncRequest(t *testing.T) { // Test_syncCallback unit test for syncCallback function func Test_syncCallback(t *testing.T) { + codec.Init() tests := []struct { name string respMsg *message.MessageFuture