avoid crashing, fail test instead
This commit is contained in:
parent
27c9fef5ea
commit
122c926493
@ -151,9 +151,14 @@ take_aml_decision_run (void *cls,
|
|||||||
TALER_TESTING_interpreter_fail (is);
|
TALER_TESTING_interpreter_fail (is);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
GNUNET_assert (GNUNET_OK ==
|
if (GNUNET_OK !=
|
||||||
TALER_TESTING_get_trait_h_payto (ref,
|
TALER_TESTING_get_trait_h_payto (ref,
|
||||||
&h_payto));
|
&h_payto))
|
||||||
|
{
|
||||||
|
GNUNET_break (0);
|
||||||
|
TALER_TESTING_interpreter_fail (is);
|
||||||
|
return;
|
||||||
|
}
|
||||||
ref = TALER_TESTING_interpreter_lookup_command (is,
|
ref = TALER_TESTING_interpreter_lookup_command (is,
|
||||||
ds->officer_ref_cmd);
|
ds->officer_ref_cmd);
|
||||||
if (NULL == ref)
|
if (NULL == ref)
|
||||||
@ -162,9 +167,14 @@ take_aml_decision_run (void *cls,
|
|||||||
TALER_TESTING_interpreter_fail (is);
|
TALER_TESTING_interpreter_fail (is);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
GNUNET_assert (GNUNET_OK ==
|
if (GNUNET_OK !=
|
||||||
TALER_TESTING_get_trait_officer_priv (ref,
|
TALER_TESTING_get_trait_officer_priv (ref,
|
||||||
&officer_priv));
|
&officer_priv))
|
||||||
|
{
|
||||||
|
GNUNET_break (0);
|
||||||
|
TALER_TESTING_interpreter_fail (is);
|
||||||
|
return;
|
||||||
|
}
|
||||||
ds->h_payto = *h_payto;
|
ds->h_payto = *h_payto;
|
||||||
if (NULL != ds->kyc_requirement)
|
if (NULL != ds->kyc_requirement)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user