Skip to content

Commit e988f9a

Browse files
committed
integration-test: Sleep for a while after mdraid creation
Integration tests are missing synchronization mechanisms and waiting for an object to appear on the bus. Thus for now, add a nasty sleep. ====================================================================== FAIL: test_md_raid_methods (__main__.MDRaid.test_md_raid_methods) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/tbzatek/devel/udisks/src/tests/integration-test", line 1855, in test_md_raid_methods self.assertIsNotNone(block) ~~~~~~~~~~~~~~~~~~~~^^^^^^^ AssertionError: unexpectedly None
1 parent cbcedef commit e988f9a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/tests/integration-test

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1831,6 +1831,7 @@ class MDRaid(UDisksTestCase):
18311831
create.extend(self.md_legs)
18321832
self.assertEqual(subprocess.call(create), 0)
18331833
self.sync()
1834+
time.sleep(2) # FIXME: find a better way
18341835

18351836
def tearDown(self):
18361837
self.assertEqual(

0 commit comments

Comments
 (0)