summaryrefslogtreecommitdiff
path: root/src/backenddb/test_merchantdb.c
diff options
context:
space:
mode:
authorpriscilla <priscilla.huang@efrei.net>2023-02-21 12:39:40 -0500
committerpriscilla <priscilla.huang@efrei.net>2023-02-21 12:39:48 -0500
commit9ac6fc8c84748f3de070b44822ec47c4f854bd15 (patch)
tree2f2ebb96c9b5c0b64791c16dfc7412e800e5a8d8 /src/backenddb/test_merchantdb.c
parent7aace51b40c2b63a64aa5d0e7f66b9819b0a07f6 (diff)
downloadmerchant-9ac6fc8c84748f3de070b44822ec47c4f854bd15.tar.gz
merchant-9ac6fc8c84748f3de070b44822ec47c4f854bd15.tar.bz2
merchant-9ac6fc8c84748f3de070b44822ec47c4f854bd15.zip
update changes
Diffstat (limited to 'src/backenddb/test_merchantdb.c')
-rw-r--r--src/backenddb/test_merchantdb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/backenddb/test_merchantdb.c b/src/backenddb/test_merchantdb.c
index 09cccc78..7b51138f 100644
--- a/src/backenddb/test_merchantdb.c
+++ b/src/backenddb/test_merchantdb.c
@@ -6878,6 +6878,7 @@ make_template (const char *id,
template->id = id;
template->template.template_description = "This is a test template";
template->template.pos_key = NULL;
+ template->template.pos_algorithm = 0;
template->template.template_contract = json_array ();
GNUNET_assert (NULL != template->template.template_contract);
}
@@ -6912,6 +6913,7 @@ check_templates_equal (const struct TALER_MERCHANTDB_TemplateDetails *a,
( (NULL == a->pos_key) && (NULL != b->pos_key)) ||
( (NULL != a->pos_key) && (NULL == b->pos_key)) ||
( (NULL != a->pos_key) && (0 != strcmp (a->pos_key, b->pos_key))) ||
+ ( a->pos_algorithm != b->pos_algorithm ) ||
(1 != json_equal (a->template_contract,
b->template_contract)))
return 1;