summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2010-06-26 05:56:35 +1200
committerLars Wirzenius <liw@liw.fi>2010-06-26 05:56:35 +1200
commitba92b68dccdd2ef5192e6ec49b079b0656f9c7e2 (patch)
tree673cecccf23055398374d578ca4244e195669852
parente8ce830f202e6527c16efd8af6a0444c8f582936 (diff)
downloadobnam-ba92b68dccdd2ef5192e6ec49b079b0656f9c7e2.tar.gz
Fix Store test to not make assumption about generation ids.
btree does not really make a guarantee about the order in which root ids are assigned, so don't make the test assume it knows what the id of the first root node will be.
-rw-r--r--obnamlib/store_tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/obnamlib/store_tests.py b/obnamlib/store_tests.py
index 3d873bec..7b04ee07 100644
--- a/obnamlib/store_tests.py
+++ b/obnamlib/store_tests.py
@@ -370,7 +370,7 @@ class StoreHostTests(unittest.TestCase):
self.store.commit_host()
self.store.open_host('hostname')
- self.assertEqual(self.store.list_generations(), [1])
+ self.assertEqual(len(self.store.list_generations()), 1)
self.store.lock_host('hostname')
self.store.remove_generation(gen)