tests: Fix flaky sub_add test

This commit is contained in:
jaseg 2022-04-17 22:35:47 +02:00
parent b8cac81b36
commit 850bfcbd2f

View file

@ -687,6 +687,7 @@ class CommandTests(MpvTestCase):
def test_sub_add(self): def test_sub_add(self):
handler = mock.Mock() handler = mock.Mock()
self.m.property_observer('sub-text')(handler) self.m.property_observer('sub-text')(handler)
time.sleep(0.5)
self.m.loadfile(TESTVID) self.m.loadfile(TESTVID)
self.m.wait_until_playing() self.m.wait_until_playing()