diff options
Diffstat (limited to 'src/testing/testing_api_cmd_get_template.c')
-rw-r--r-- | src/testing/testing_api_cmd_get_template.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/testing/testing_api_cmd_get_template.c b/src/testing/testing_api_cmd_get_template.c index bd9afff3..acd9a2e3 100644 --- a/src/testing/testing_api_cmd_get_template.c +++ b/src/testing/testing_api_cmd_get_template.c @@ -80,7 +80,7 @@ static void get_template_cb (void *cls, const struct TALER_MERCHANT_HttpResponse *hr, const char *template_description, - const char *image, + const char *pos_key, const json_t *template_contract) { struct GetTemplateState *gis = cls; @@ -120,22 +120,22 @@ get_template_cb (void *cls, } } { - const char **expected_image; + const char **expected_pos_key; if (GNUNET_OK != - TALER_TESTING_get_trait_template_image (template_cmd, - &expected_image)) + TALER_TESTING_get_trait_template_pos_key (template_cmd, + &expected_pos_key)) TALER_TESTING_interpreter_fail (gis->is); - if ( ( (NULL == image) && (NULL != *expected_image)) || - ( (NULL != image) && (NULL == *expected_image)) || - ( (NULL != image) && - (0 != strcmp (image, - *expected_image)) ) ) + if ( ( (NULL == pos_key) && (NULL != *expected_pos_key)) || + ( (NULL != pos_key) && (NULL == *expected_pos_key)) || + ( (NULL != pos_key) && + (0 != strcmp (pos_key, + *expected_pos_key)) ) ) { GNUNET_log (GNUNET_ERROR_TYPE_ERROR, - "Template image `%s' does not match `%s'\n", - image, - *expected_image); + "Template pos_key `%s' does not match `%s'\n", + pos_key, + *expected_pos_key); TALER_TESTING_interpreter_fail (gis->is); return; } |