forked from TrueCloudLab/frostfs-api-go
[#189] sdk/netmap: Get rid of the use of v2 types in the placement code
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
40d7c9cd93
commit
9834ed4e68
9 changed files with 195 additions and 225 deletions
|
@ -7,19 +7,6 @@ import (
|
|||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
func TestNode_NetworkAddress(t *testing.T) {
|
||||
addr := "127.0.0.1:8080"
|
||||
|
||||
nV2 := new(netmap.NodeInfo)
|
||||
nV2.SetAddress(addr)
|
||||
|
||||
n := Node{
|
||||
InfoV2: nV2,
|
||||
}
|
||||
|
||||
require.Equal(t, addr, n.NetworkAddress())
|
||||
}
|
||||
|
||||
func TestNodeStateFromV2(t *testing.T) {
|
||||
for _, item := range []struct {
|
||||
s NodeState
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue