]> arthur.barton.de Git - bup.git/blobdiff - lib/bup/t/tclient.py
Fix test by forcing order
[bup.git] / 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()