From: Brandon Low Date: Wed, 12 Jan 2011 01:15:52 +0000 (-0800) Subject: Fix test by forcing order X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=e3c618794267817c2f7ec981c733834a603f99dc;p=packages%2Fb%2Fbup.git Fix test by forcing order Signed-off-by: Brandon Low --- diff --git a/lib/bup/t/tclient.py b/lib/bup/t/tclient.py index a5444f3..559188b 100644 --- a/lib/bup/t/tclient.py +++ b/lib/bup/t/tclient.py @@ -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()