From 00ffcb0d230a4fb9f96ae4ad990001d0f4a4feb0 Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Thu, 15 Dec 2016 19:07:39 +0200 Subject: [PATCH] - Corrected test. --- tests/test_ntp.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/test_ntp.py b/tests/test_ntp.py index 41a8af8..9156d53 100644 --- a/tests/test_ntp.py +++ b/tests/test_ntp.py @@ -5,8 +5,9 @@ testinfra_hosts = AnsibleRunner('.molecule/ansible_inventory').get_hosts('all') def test_ntp(Service): assert Service('systemd-timesyncd').is_running or Service( - 'ntpd').is_running + 'ntpd').is_running or Service('openntpd').is_running try: - Service('systemd-timesyncd').is_enabled or Service('ntpd').is_enabled + Service('systemd-timesyncd').is_enabled or Service( + 'ntpd').is_enabled or Service('openntpd').is_enabled except NotImplementedError: pass -- GitLab