]> arthur.barton.de Git - bup.git/commit
git: add a test for not keeping midx files open
authorJohannes Berg <johannes@sipsolutions.net>
Sat, 18 Jan 2020 21:36:36 +0000 (22:36 +0100)
committerRob Browning <rlb@defaultvalue.org>
Sun, 19 Apr 2020 20:52:29 +0000 (15:52 -0500)
commit5ab20bb9d4bd403eb726fe6c5a7321a09ad2b21f
tree77347ef06d889710b30b9b542db7b5349d78a8e2
parentbbeea3a3f5408d8752fa38a0da9d0de6d6aa30d8
git: add a test for not keeping midx files open

This test creates a few dummy idx files, generates an midx,
queries a PackIdxList for a non-existent object, unlinks the
midx and checks that we still have it open, but that we close
it at PackIdxList::refresh now.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
lib/bup/t/tgit.py