Moving checks where they belong.

This commit is contained in:
Marcello Stanisci 2019-06-03 18:42:07 +02:00
parent 60549a69c7
commit 4f17b17fe3
No known key found for this signature in database
GPG Key ID: 8D526861953F4C0F

View File

@ -523,21 +523,23 @@ track_transfer_cb
TALER_TESTING_interpreter_fail (is);
return;
}
if (NULL == tts->expected_total_amount)
{
GNUNET_break (0);
TALER_TESTING_interpreter_fail (is);
return;
}
if (NULL == tts->expected_wire_fee)
{
GNUNET_break (0);
TALER_TESTING_interpreter_fail (is);
return;
}
switch (http_status)
{
case MHD_HTTP_OK:
if (NULL == tts->expected_total_amount)
{
GNUNET_break (0);
TALER_TESTING_interpreter_fail (is);
return;
}
if (NULL == tts->expected_wire_fee)
{
GNUNET_break (0);
TALER_TESTING_interpreter_fail (is);
return;
}
if (GNUNET_OK !=
TALER_string_to_amount (tts->expected_total_amount,
&expected_amount))