commit 47343b64b1e4bc8063078630c4b8ba411a001bc0
parent 87aa0dd56ddc76f94ada169de698ef1336741de7
Author: Christian Grothoff <grothoff@gnunet.org>
Date: Fri, 17 Jul 2026 23:53:23 +0200
strengthen test to check against correct donau keys
Diffstat:
2 files changed, 6 insertions(+), 7 deletions(-)
diff --git a/src/testing/testing_api_cmd_donation_statement_get.c b/src/testing/testing_api_cmd_donation_statement_get.c
@@ -141,7 +141,6 @@ donation_statement_status_cb (struct StatusState *ss,
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"Verify donation statement signature failed!");
TALER_TESTING_interpreter_fail (ss->is);
- return;
}
@@ -228,6 +227,7 @@ TALER_TESTING_cmd_donation_statement_get (const char *label,
unsigned int expected_response_code)
{
struct StatusState *ss;
+
ss = GNUNET_new (struct StatusState);
ss->donation_statement.year = year;
ss->expected_response_code = expected_response_code;
diff --git a/src/testing/testing_api_cmd_issue_receipts.c b/src/testing/testing_api_cmd_issue_receipts.c
@@ -223,14 +223,13 @@ issue_receipts_status_cb (struct StatusState *ss,
&ss->receipts[i].donation_unit_sig))
{
GNUNET_break_op (0);
- GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
+ GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"Donation receipt signature invalid!\n");
+ TALER_TESTING_interpreter_fail (ss->is);
+ return;
}
- else
- {
- GNUNET_log (GNUNET_ERROR_TYPE_INFO,
- "Donation receipt signature valid!\n");
- }
+ GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+ "Donation receipt signature valid!\n");
}
}
TALER_TESTING_interpreter_next (ss->is);