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"}, }, }