forked from TrueCloudLab/frostfs-node
dadfd90dcd
Initial public review release v0.10.0
24 lines
403 B
Go
24 lines
403 B
Go
package boot
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/nspcc-dev/neofs-api-go/bootstrap"
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestBootstrapPeerParams(t *testing.T) {
|
|
s := BootstrapPeerParams{}
|
|
|
|
nodeInfo := &bootstrap.NodeInfo{
|
|
Address: "address",
|
|
PubKey: []byte{1, 2, 3},
|
|
Options: []string{
|
|
"opt1",
|
|
"opt2",
|
|
},
|
|
}
|
|
s.SetNodeInfo(nodeInfo)
|
|
|
|
require.Equal(t, nodeInfo, s.NodeInfo())
|
|
}
|