summaryrefslogtreecommitdiff
path: root/src/testing/testing_api_cmd_config.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testing/testing_api_cmd_config.c')
-rw-r--r--src/testing/testing_api_cmd_config.c24
1 files changed, 7 insertions, 17 deletions
diff --git a/src/testing/testing_api_cmd_config.c b/src/testing/testing_api_cmd_config.c
index 92a8ae1..bd245cc 100644
--- a/src/testing/testing_api_cmd_config.c
+++ b/src/testing/testing_api_cmd_config.c
@@ -74,22 +74,11 @@ config_cb (void *cls,
ss->so = NULL;
if (http_status != ss->http_status)
{
- GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
- "Unexpected response code %u to command %s in %s:%u\n",
- http_status,
- ss->is->commands[ss->is->ip].label,
- __FILE__,
- __LINE__);
- TALER_TESTING_interpreter_fail (ss->is);
- return;
+ TALER_TESTING_unexpected_status (ss->is,
+ http_status);
}
if (NULL == config)
{
- GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
- "Config is NULL, command %s in %s:%u\n",
- ss->is->commands[ss->is->ip].label,
- __FILE__,
- __LINE__);
TALER_TESTING_interpreter_fail (ss->is);
return;
}
@@ -113,10 +102,11 @@ config_run (void *cls,
struct ConfigState *ss = cls;
ss->is = is;
- ss->so = ANASTASIS_get_config (is->ctx,
- ss->anastasis_url,
- &config_cb,
- ss);
+ ss->so = ANASTASIS_get_config (
+ TALER_TESTING_interpreter_get_context (is),
+ ss->anastasis_url,
+ &config_cb,
+ ss);
if (NULL == ss->so)
{
GNUNET_break (0);