From 217ce4fdeab81651da9116669c3e11caef6ec810 Mon Sep 17 00:00:00 2001 From: David Zafman Date: Tue, 1 Nov 2016 11:00:16 -0700 Subject: [PATCH] Revert "check for inconsistent objects count instead of all keys" This reverts commit e94f3901928501586f44c35612bc8f2dc504f465. Signed-off-by: David Zafman --- tasks/scrub_test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/scrub_test.py b/tasks/scrub_test.py index 5d6ae0c520406..f68cafc8ec5fc 100644 --- a/tasks/scrub_test.py +++ b/tasks/scrub_test.py @@ -325,10 +325,10 @@ def test_list_inconsistent_obj(ctx, manager, osd_remote, pg, acting, osd_id, with contextlib.closing(StringIO()) as out: mon.run(args=cmd.split(), stdout=out) objs = json.loads(out.getvalue()) - assert len(objs['inconsistents']) == 1 + assert len(objs) == 1 checker = InconsistentObjChecker(osd_id, acting, obj_name) - inc_obj = objs['inconsistents'][0] + inc_obj = objs[0] log.info('inc = %r', inc_obj) checker.basic_checks(inc_obj) for check in checks: -- 2.39.5