diff --git a/t/t0007-ping.t b/t/t0007-ping.t index 9e6b3de4362d..77f578f56e9a 100755 --- a/t/t0007-ping.t +++ b/t/t0007-ping.t @@ -138,10 +138,10 @@ test_expect_success 'ping help output works' ' ' test_expect_success 'ping works with hostname' ' - flux ping --count=1 $(hostname -s) + flux ping --count=1 $(hostname) ' test_expect_success 'ping works with hostname!service' ' - flux ping --count=1 "$(hostname -s)!broker" + flux ping --count=1 "$(hostname)!broker" ' test_expect_success 'ping fails with unknown hostname' ' test_must_fail flux ping --count=1 "notmyhost!broker"