diff options
author | Lars Wirzenius <liw@liw.fi> | 2010-06-26 05:56:35 +1200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2010-06-26 05:56:35 +1200 |
commit | ba92b68dccdd2ef5192e6ec49b079b0656f9c7e2 (patch) | |
tree | 673cecccf23055398374d578ca4244e195669852 | |
parent | e8ce830f202e6527c16efd8af6a0444c8f582936 (diff) | |
download | obnam-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.py | 2 |
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) |