forked from TrueCloudLab/frostfs-node
Initial commit
Initial public review release v0.10.0
This commit is contained in:
commit
dadfd90dcd
276 changed files with 46331 additions and 0 deletions
23
lib/netmap/storage_test.go
Normal file
23
lib/netmap/storage_test.go
Normal file
|
@ -0,0 +1,23 @@
|
|||
package netmap
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/nspcc-dev/neofs-api-go/bootstrap"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
func TestGetResult(t *testing.T) {
|
||||
s := GetResult{}
|
||||
|
||||
nm := NewNetmap()
|
||||
require.NoError(t,
|
||||
nm.AddNode(&bootstrap.NodeInfo{
|
||||
Address: "address",
|
||||
PubKey: []byte{1, 2, 3},
|
||||
}),
|
||||
)
|
||||
s.SetNetMap(nm)
|
||||
|
||||
require.Equal(t, nm, s.NetMap())
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue