mirror of
https://github.com/systemd/systemd.git
synced 2024-12-22 17:35:35 +03:00
sysv-generator test: Fix random ordering failure
test_simple_escaped() sometimes fails with AssertionError: Lists differ: ['foo\\x2b.service', 'foo-admin.service'] != ['foo-admin.service', 'foo\\x2b.service'] We don't need to assume any order here, so compare them as a set, not a list.
This commit is contained in:
parent
64ea3f926d
commit
52a321d839
@ -196,7 +196,7 @@ class SysvGeneratorTest(unittest.TestCase):
|
||||
self.add_sysv('foo+', {})
|
||||
self.add_sysv('foo-admin', {})
|
||||
err, results = self.run_generator()
|
||||
self.assertEqual(list(results), ['foo-admin.service', 'foo\\x2b.service'])
|
||||
self.assertEqual(set(results), {'foo-admin.service', 'foo\\x2b.service'})
|
||||
self.assertNotIn('Overwriting', err)
|
||||
|
||||
def test_simple_enabled_some(self):
|
||||
|
Loading…
Reference in New Issue
Block a user