diff --git a/tests/test_ntp.py b/tests/test_ntp.py
index c3b46c264396e76f4560c771a309f27b09c005fb..69dd76c78b083a6460857c6c721ad6103d166c95 100755
--- a/tests/test_ntp.py
+++ b/tests/test_ntp.py
@@ -44,8 +44,8 @@ if os.path.isfile('../utils.py'):
         for l in d.split('\n'):
             if l.startswith(ntpconf_expected):
                 servers.append(l.split(ntpconf_expected)[1])
-        if not 'server %s' % NTP_SERVER in d:
-            print('Expected NTP server %s not found in %s, found %s instead' % (NTP_SERVER,ntpconf, servers))
+        if not '%s%s' % (nfpconf_expected, NTP_SERVER) in d:
+            print('Expected NTP server %s not found in %s, found %s instead' % (NTP_SERVER, ntpconf, servers))
             sys.exit(1)
         else:
             print('Expected NTP server %s found in configuration (total servers: %s)' % (NTP_SERVER, len(servers)))