From 5528db9693f89e01df4fcf3926c9a959d779c5b8 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Tue, 22 Apr 2014 12:06:32 +0200 Subject: [PATCH] Fix config test (hostname check) --- cmd/syncthing/config_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/syncthing/config_test.go b/cmd/syncthing/config_test.go index 04f3fa310..0e96b0225 100644 --- a/cmd/syncthing/config_test.go +++ b/cmd/syncthing/config_test.go @@ -3,6 +3,7 @@ package main import ( "bytes" "io" + "os" "reflect" "testing" ) @@ -193,6 +194,7 @@ func TestNodeAddresses(t *testing.T) { `) + 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"}, }, }