Skip to content

Commit

Permalink
chore: pkg import more than once
Browse files Browse the repository at this point in the history
Signed-off-by: guoguangwu <[email protected]>
  • Loading branch information
testwill committed Aug 21, 2023
1 parent cfbb60d commit f432c1c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions server/etcdserver/api/membership/membership_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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 }

0 comments on commit f432c1c

Please sign in to comment.