Skip to content

Commit

Permalink
Fix test by forcing order
Browse files Browse the repository at this point in the history
Signed-off-by: Brandon Low <lostlogic@lostlogicx.com>
  • Loading branch information
Brandon Low authored and apenwarr committed Jan 18, 2011
1 parent 292752f commit e3c6187
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/bup/t/tclient.py
Expand Up @@ -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()
Expand Down

0 comments on commit e3c6187

Please sign in to comment.