From 70775884333dbf37353968c1408219fd242daffa Mon Sep 17 00:00:00 2001 From: chuntaojun Date: Mon, 8 Jan 2024 22:41:20 +0800 Subject: [PATCH] codecov:1.18.0 --- common/model/contract.go | 3 ++- config/client_test.go | 2 +- config/server_test.go | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/common/model/contract.go b/common/model/contract.go index 8d72a7061..30ccb6c8a 100644 --- a/common/model/contract.go +++ b/common/model/contract.go @@ -21,8 +21,9 @@ import ( "fmt" "time" - commontime "github.com/polarismesh/polaris/common/time" apiservice "github.com/polarismesh/specification/source/go/api/v1/service_manage" + + commontime "github.com/polarismesh/polaris/common/time" ) type ServiceContract struct { diff --git a/config/client_test.go b/config/client_test.go index 43c77792c..ba650115f 100644 --- a/config/client_test.go +++ b/config/client_test.go @@ -694,7 +694,7 @@ func TestServer_GetConfigGroupsWithCache(t *testing.T) { // 同一个 revision 查询 rsp = testSuit.ConfigServer().GetConfigGroupsWithCache(testSuit.DefaultCtx, &apiconfig.ClientConfigFileInfo{ Namespace: wrapperspb.String("ns-0"), - Md5: wrapperspb.String(rsp.GetRevision()), + Md5: wrapperspb.String(rsp.GetRevision()), }) assert.Equal(t, uint32(apimodel.Code_DataNoChange), rsp.Code, rsp.Info) diff --git a/config/server_test.go b/config/server_test.go index ff0061c30..66d3a06e2 100644 --- a/config/server_test.go +++ b/config/server_test.go @@ -22,10 +22,11 @@ import ( "testing" "github.com/golang/mock/gomock" + "github.com/stretchr/testify/assert" + mockcache "github.com/polarismesh/polaris/cache/mock" "github.com/polarismesh/polaris/common/eventhub" mockstore "github.com/polarismesh/polaris/store/mock" - "github.com/stretchr/testify/assert" ) func Test_Initialize(t *testing.T) {