Fix config test (hostname check)

This commit is contained in:
Jakob Borg 2014-04-22 12:06:32 +02:00
parent aa78fbb09d
commit 5528db9693

View File

@ -3,6 +3,7 @@ package main
import ( import (
"bytes" "bytes"
"io" "io"
"os"
"reflect" "reflect"
"testing" "testing"
) )
@ -193,6 +194,7 @@ func TestNodeAddresses(t *testing.T) {
</configuration> </configuration>
`) `)
name, _ := os.Hostname()
expected := []NodeConfiguration{ expected := []NodeConfiguration{
{ {
NodeID: "n1", NodeID: "n1",
@ -208,6 +210,7 @@ func TestNodeAddresses(t *testing.T) {
}, },
{ {
NodeID: "n4", NodeID: "n4",
Name: name, // Set when auto created
Addresses: []string{"dynamic"}, Addresses: []string{"dynamic"},
}, },
} }