diff options
author | priscilla <priscilla.huang@efrei.net> | 2023-02-20 04:40:12 -0500 |
---|---|---|
committer | priscilla <priscilla.huang@efrei.net> | 2023-02-20 12:19:40 -0500 |
commit | 83c11d7428c6d4ba2e1749630724c39811a24241 (patch) | |
tree | f9b51c1c2b718166185a8d5338d21271996c2358 /src/backenddb/test_merchantdb.c | |
parent | 69341625aad4b0a1b3642103226f11c2ec4d943c (diff) | |
download | merchant-83c11d7428c6d4ba2e1749630724c39811a24241.tar.gz merchant-83c11d7428c6d4ba2e1749630724c39811a24241.tar.bz2 merchant-83c11d7428c6d4ba2e1749630724c39811a24241.zip |
pull changes
Diffstat (limited to 'src/backenddb/test_merchantdb.c')
-rw-r--r-- | src/backenddb/test_merchantdb.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/backenddb/test_merchantdb.c b/src/backenddb/test_merchantdb.c index 346a5427..5a84e8b2 100644 --- a/src/backenddb/test_merchantdb.c +++ b/src/backenddb/test_merchantdb.c @@ -6875,7 +6875,7 @@ make_template (const char *id, { template->id = id; template->template.template_description = "This is a test template"; - template->template.image = NULL; + template->template.pos_key = NULL; template->template.template_contract = json_array (); GNUNET_assert (NULL != template->template.template_contract); } @@ -6889,7 +6889,7 @@ make_template (const char *id, static void free_template_data (struct TemplateData *template) { - GNUNET_free (template->template.image); + GNUNET_free (template->template.pos_key); json_decref (template->template.template_contract); } @@ -6907,9 +6907,9 @@ check_templates_equal (const struct TALER_MERCHANTDB_TemplateDetails *a, { if ((0 != strcmp (a->template_description, b->template_description)) || - ( (NULL == a->image) && (NULL != b->image)) || - ( (NULL != a->image) && (NULL == b->image)) || - ( (NULL != a->image) && (0 != strcmp (a->image, b->image))) || + ( (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))) || (1 != json_equal (a->template_contract, b->template_contract))) return 1; @@ -7220,8 +7220,8 @@ run_test_templates (struct TestTemplates_Closure *cls) /* Test template update */ cls->templates[0].template.template_description = "This is a test template that has been updated!"; - GNUNET_free (cls->templates[0].template.image); - cls->templates[0].template.image = GNUNET_strdup ("image"); + GNUNET_free (cls->templates[0].template.pos_key); + cls->templates[0].template.pos_key = GNUNET_strdup ("pos_key"); GNUNET_assert (0 == json_array_append_new ( cls->templates[0].template.template_contract, |