return result;
}
-static int checkAfter = 1;
+static const int checkAfter = 1;
+static const int pollCount = 3;
+
static int test_exec_IR_ses_poll_ok(void)
{
return test_exec_REQ_ses_poll(OSSL_CMP_PKIBODY_IR, checkAfter, 2, 0,
static int test_exec_IR_ses_poll_total_timeout(void)
{
return test_exec_REQ_ses_poll(OSSL_CMP_PKIBODY_IR, checkAfter,
- 3 /* pollCount */, checkAfter + 4,
+ pollCount, (pollCount - 1) * checkAfter,
OSSL_CMP_PKISTATUS_trans);
}
static int test_exec_GENM_ses_poll_total_timeout(void)
{
return test_exec_REQ_ses_poll(OSSL_CMP_PKIBODY_GENM, checkAfter,
- 3 /* pollCount */, checkAfter + 2,
+ pollCount, (pollCount - 1) * checkAfter,
OSSL_CMP_PKISTATUS_trans);
}