Skip to content

Commit

Permalink
Update struct_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
genofire committed Jan 14, 2019
1 parent d265ac3 commit d4c120d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions output/meshviewer-ffrgb/struct_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,20 @@ func TestRegister(t *testing.T) {
assert := assert.New(t)
nodes := runtime.NewNodes(&runtime.NodesConfig{})
node := NewNode(nodes, &runtime.Node{
Nodeinfo: &data.NodeInfo{
Owner: &data.Owner{
Contact: "whoami",
},
Network: data.Network{
Mac: "blub",
Addresses: []string{"fe80::1"},
},
},
})
assert.NotNil(node)
assert.Len(node.Addresses, 1)

node = NewNode(nodes, &runtime.Node{
Nodeinfo: &data.NodeInfo{
Owner: &data.Owner{
Contact: "whoami",
Expand Down

0 comments on commit d4c120d

Please sign in to comment.