From f432c1cf20fb06de95476929edce88a079d751ab Mon Sep 17 00:00:00 2001 From: guoguangwu Date: Mon, 21 Aug 2023 10:19:05 +0800 Subject: [PATCH] chore: pkg import more than once Signed-off-by: guoguangwu --- server/etcdserver/api/membership/membership_test.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/server/etcdserver/api/membership/membership_test.go b/server/etcdserver/api/membership/membership_test.go index 8e3a9691883..b2ec4b324ae 100644 --- a/server/etcdserver/api/membership/membership_test.go +++ b/server/etcdserver/api/membership/membership_test.go @@ -21,7 +21,6 @@ import ( "github.com/stretchr/testify/assert" "go.etcd.io/etcd/client/pkg/v3/types" - "go.etcd.io/etcd/server/v3/etcdserver/version" serverversion "go.etcd.io/etcd/server/v3/etcdserver/version" "go.uber.org/zap" @@ -57,7 +56,7 @@ type backendMock struct { members map[types.ID]*Member removed map[types.ID]bool version *semver.Version - downgradeInfo *version.DowngradeInfo + downgradeInfo *serverversion.DowngradeInfo } var _ MembershipBackend = (*backendMock)(nil) @@ -93,7 +92,7 @@ func (b *backendMock) MustDeleteMemberFromBackend(id types.ID) { b.removed[id] = true } -func (b *backendMock) MustSaveDowngradeToBackend(downgradeInfo *version.DowngradeInfo) { +func (b *backendMock) MustSaveDowngradeToBackend(downgradeInfo *serverversion.DowngradeInfo) { b.downgradeInfo = downgradeInfo } -func (b *backendMock) DowngradeInfoFromBackend() *version.DowngradeInfo { return b.downgradeInfo } +func (b *backendMock) DowngradeInfoFromBackend() *serverversion.DowngradeInfo { return b.downgradeInfo }