diff --git a/tests/integration/pping_test.py b/tests/integration/pping_test.py index 56295d91a1..6fb4181621 100644 --- a/tests/integration/pping_test.py +++ b/tests/integration/pping_test.py @@ -89,7 +89,7 @@ def test_pping_should_post_event_when_host_is_unreachable( def get_root_method(): if os.geteuid() == 0: return [] - elif os.system("sudo true") == 0: + elif os.system("sudo -nv") == 0: return ["sudo", "-E"] elif os.system("gosu root true") == 0: return ["gosu", "root"]