Skip to content

Commit

Permalink
Try the hostname command inside test containers
Browse files Browse the repository at this point in the history
  • Loading branch information
ananthb committed Apr 27, 2024
1 parent 53b0dc2 commit fccac51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hostname1/dbus_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit fccac51

Please sign in to comment.