diff options
Diffstat (limited to 'src/testing/testing_api_cmd_config.c')
-rw-r--r-- | src/testing/testing_api_cmd_config.c | 24 |
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, | |||
74 | ss->so = NULL; | 74 | ss->so = NULL; |
75 | if (http_status != ss->http_status) | 75 | if (http_status != ss->http_status) |
76 | { | 76 | { |
77 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | 77 | TALER_TESTING_unexpected_status (ss->is, |
78 | "Unexpected response code %u to command %s in %s:%u\n", | 78 | http_status); |
79 | http_status, | ||
80 | ss->is->commands[ss->is->ip].label, | ||
81 | __FILE__, | ||
82 | __LINE__); | ||
83 | TALER_TESTING_interpreter_fail (ss->is); | ||
84 | return; | ||
85 | } | 79 | } |
86 | if (NULL == config) | 80 | if (NULL == config) |
87 | { | 81 | { |
88 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | ||
89 | "Config is NULL, command %s in %s:%u\n", | ||
90 | ss->is->commands[ss->is->ip].label, | ||
91 | __FILE__, | ||
92 | __LINE__); | ||
93 | TALER_TESTING_interpreter_fail (ss->is); | 82 | TALER_TESTING_interpreter_fail (ss->is); |
94 | return; | 83 | return; |
95 | } | 84 | } |
@@ -113,10 +102,11 @@ config_run (void *cls, | |||
113 | struct ConfigState *ss = cls; | 102 | struct ConfigState *ss = cls; |
114 | 103 | ||
115 | ss->is = is; | 104 | ss->is = is; |
116 | ss->so = ANASTASIS_get_config (is->ctx, | 105 | ss->so = ANASTASIS_get_config ( |
117 | ss->anastasis_url, | 106 | TALER_TESTING_interpreter_get_context (is), |
118 | &config_cb, | 107 | ss->anastasis_url, |
119 | ss); | 108 | &config_cb, |
109 | ss); | ||
120 | if (NULL == ss->so) | 110 | if (NULL == ss->so) |
121 | { | 111 | { |
122 | GNUNET_break (0); | 112 | GNUNET_break (0); |