]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
test/mon/PGMap: fix the test case
authorIgor Fedotov <ifedotov@suse.com>
Wed, 7 Mar 2018 12:42:34 +0000 (15:42 +0300)
committerIgor Fedotov <ifedotov@suse.com>
Thu, 6 Dec 2018 15:54:21 +0000 (18:54 +0300)
Signed-off-by: Igor Fedotov <ifedotov@suse.com>
src/test/mon/PGMap.cc

index 190478ec8abd1b45352c5012c4d9f16151836af9..45a66ffd1bfff992f607c3c24e4df0cdbfc39560 100644 (file)
@@ -64,9 +64,10 @@ TEST(pgmap, dump_object_stat_sum_0)
   sum.num_rd_kb = 123;
   sum.num_wr = 101;
   sum.num_wr_kb = 321;    
+  pool_stat.num_store_stats = 3;
   store_statfs_t &statfs = pool_stat.store_stats;
-  statfs.data_stored = 42 * 1024 * 1024 - 5;
-  statfs.allocated = 42 * 1024 * 1024 * 2;
+  statfs.data_stored = 40 * 1024 * 1024;
+  statfs.allocated = 41 * 1024 * 1024 * 2;
   statfs.data_compressed_allocated = 4334;
   statfs.data_compressed_original = 1213;