From 09b28462e1f8994d23573ea21559f83f279f9606 Mon Sep 17 00:00:00 2001 From: Fan Yong Date: Mon, 18 Nov 2024 14:56:15 +0800 Subject: [PATCH] DAOS-16802 tests: properly set fault_injection for CR test - b26 Test-tag: test_daos_cat_recov_core Allow-unstable-test: true faults-enabled: false Signed-off-by: Fan Yong --- src/tests/suite/daos_cr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tests/suite/daos_cr.c b/src/tests/suite/daos_cr.c index 85ade4754ded..12b4a9958dc6 100644 --- a/src/tests/suite/daos_cr.c +++ b/src/tests/suite/daos_cr.c @@ -1945,8 +1945,6 @@ cr_pause(void **state, bool force) int rc; int i; - FAULT_INJECTION_REQUIRED(); - rc = cr_pool_create(state, &pool, false, class); assert_rc_equal(rc, 0); @@ -3675,6 +3673,8 @@ cr_maintenance_mode(void **state) struct daos_check_info dci = { 0 }; int rc; + FAULT_INJECTION_REQUIRED(); + print_message("CR28: maintenance mode after dry-run check\n"); rc = cr_pool_create(state, &pool, true, TCC_NONE);