linux: Work-around potential race in test_headset_hotplug

This commit is contained in:
Bastien Nocera 2023-07-05 12:39:09 +02:00
parent 38576a9bd7
commit f8fe036331

View file

@ -2471,6 +2471,7 @@ class Tests(dbusmock.DBusTestCase):
self.testbed.add_from_file(os.path.join(edir, 'tests/steelseries-headset.device'))
card = '/sys/devices/pci0000:00/0000:00:14.0/usb1/1-5/1-5:1.0/sound/card1'
self.wait_for_mainloop()
devs = self.proxy.EnumerateDevices()
self.assertEqual(len(devs), 1)