ut: update io-req-ut:device_check() test
This is a followup change to the commit
after which the test started failing.
@@ -1105,12 +1105,15 @@ static void ut_test_device_check(void)
&instance->m0c_pools_common.pc_cur_pver->pv_mach,
0, M0_PNDS_OFFLINE);
+ rc = device_check(ioo);
+ M0_UT_ASSERT(rc == 1);
+
ut_set_node_state(
&instance->m0c_pools_common.pc_cur_pver->pv_mach,
0, M0_PNDS_FAILED);
rc = device_check(ioo);
- M0_UT_ASSERT(rc == 1);
+ M0_UT_ASSERT(rc == -EIO);
tioreqht_htable_del(&xfer->nxr_tioreqs_hash, ti);
ut_dummy_target_ioreq_delete(ti);
