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