diff options
author | Chris Wilson <chris+github@qwirx.com> | 2014-11-16 23:12:22 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2014-11-16 23:12:22 +0000 |
commit | 34aede1c187c06ad94076bb7947f879bae2889ce (patch) | |
tree | 48562ce736b78a42f157c8cdefa65d1630bfb432 /test/backupstore | |
parent | 521c70553125b6da53c65a60e36fcc18aec36565 (diff) |
Fix test failures caused by reference count database changes.
Diffstat (limited to 'test/backupstore')
-rw-r--r-- | test/backupstore/testbackupstore.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/backupstore/testbackupstore.cpp b/test/backupstore/testbackupstore.cpp index f1ff3223..2e8f9f37 100644 --- a/test/backupstore/testbackupstore.cpp +++ b/test/backupstore/testbackupstore.cpp @@ -2024,6 +2024,7 @@ bool test_directory_parent_entry_tracks_directory_size() // Now delete an entry, and check that the size is reduced protocol.QueryDeleteFile(subdirid, BackupStoreFilenameClear(last_added_filename)); + ExpectedRefCounts[last_added_file_id] = 0; // Reduce the limits, to remove it permanently from the store protocol.QueryFinished(); @@ -2094,13 +2095,13 @@ bool test_directory_parent_entry_tracks_directory_size() // Delete it again, which should reduce the object size again protocol.QueryDeleteDirectory(dir2id); + set_refcount(dir2id, 0); // Reduce the limits, to remove it permanently from the store protocol.QueryFinished(); protocolReadOnly.QueryFinished(); TEST_THAT(change_account_limits("0B", "20000B")); TEST_THAT(run_housekeeping_and_check_account()); - set_refcount(dir2id, 0); protocol.Reopen(); protocolReadOnly.Reopen(); |