forked from TrueCloudLab/frostfs-node
[#607] network: Remove no longer used Address.WriteToNodeInfo
method
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
149367cab9
commit
61cc70d899
2 changed files with 0 additions and 26 deletions
|
@ -4,7 +4,6 @@ import (
|
|||
"testing"
|
||||
|
||||
"github.com/multiformats/go-multiaddr"
|
||||
"github.com/nspcc-dev/neofs-api-go/pkg/netmap"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
|
@ -66,22 +65,3 @@ func buildMultiaddr(s string, t *testing.T) multiaddr.Multiaddr {
|
|||
require.NoError(t, err)
|
||||
return ma
|
||||
}
|
||||
|
||||
func TestAddress_WriteToNodeInfo(t *testing.T) {
|
||||
a := "127.0.0.1:8080"
|
||||
|
||||
var addr Address
|
||||
|
||||
err := addr.FromString(a)
|
||||
require.NoError(t, err)
|
||||
|
||||
var ni netmap.NodeInfo
|
||||
|
||||
addr.WriteToNodeInfo(&ni)
|
||||
|
||||
var restored Address
|
||||
|
||||
err = restored.FromString(ni.Address())
|
||||
require.NoError(t, err)
|
||||
require.True(t, restored.Equal(addr))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue