diff --git a/test/networkd-test.py b/test/networkd-test.py index f178a144f06..8599398c1c2 100755 --- a/test/networkd-test.py +++ b/test/networkd-test.py @@ -497,8 +497,8 @@ Domains= ~company ~lab''') # VPN domains should only be sent to VPN DNS self.assertRegex(vpn_log, 'query.*math.lab') self.assertRegex(vpn_log, 'query.*cantina.company') - self.assertNotIn('lab', general_log) - self.assertNotIn('company', general_log) + self.assertNotIn('.lab', general_log) + self.assertNotIn('.company', general_log) # general domains should not be sent to the VPN DNS self.assertRegex(general_log, 'query.*megasearch.net')