]> arthur.barton.de Git - bup.git/commitdiff
Fix test by forcing order
authorBrandon Low <lostlogic@lostlogicx.com>
Wed, 12 Jan 2011 01:15:52 +0000 (17:15 -0800)
committerAvery Pennarun <apenwarr@gmail.com>
Tue, 18 Jan 2011 20:36:58 +0000 (12:36 -0800)
Signed-off-by: Brandon Low <lostlogic@lostlogicx.com>
lib/bup/t/tclient.py

index a5444f3194c81f4e342339a8f4ab1dc18e4ed482..559188bfb5d08eb29eb02263b378fcb77a5ab23d 100644 (file)
@@ -50,6 +50,8 @@ def test_multiple_suggestions():
     rw = c.new_packwriter()
     rw.new_blob(s1)
     rw.new_blob(s2)
+    # This is a little hacky, but ensures that we test the code under test
+    while len(os.listdir(c.cachedir)) < 2 and not c.conn.has_input(): pass
     rw.new_blob(s3)
     WVPASSEQ(len(os.listdir(c.cachedir)), 2)
     rw.close()