diff --git a/hostname1/dbus_test.go b/hostname1/dbus_test.go index c980c35..43ccc00 100644 --- a/hostname1/dbus_test.go +++ b/hostname1/dbus_test.go @@ -28,7 +28,7 @@ func TestNew(t *testing.T) { // TestHostname ensures that the Hostname() method returns the system hostname. func TestHostname(t *testing.T) { - expectedHostname, err := exec.Command("hostnamectl", "hostname").CombinedOutput() + expectedHostname, err := exec.Command("hostname").CombinedOutput() if err != nil { t.Fatal(err) }