diff options
Diffstat (limited to 'src/testing/testing_api_cmd_policy_lookup.c')
-rw-r--r-- | src/testing/testing_api_cmd_policy_lookup.c | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/src/testing/testing_api_cmd_policy_lookup.c b/src/testing/testing_api_cmd_policy_lookup.c index 1f59b12..9eb57c6 100644 --- a/src/testing/testing_api_cmd_policy_lookup.c +++ b/src/testing/testing_api_cmd_policy_lookup.c | |||
@@ -85,14 +85,8 @@ policy_lookup_cb (void *cls, | |||
85 | pls->plo = NULL; | 85 | pls->plo = NULL; |
86 | if (http_status != pls->http_status) | 86 | if (http_status != pls->http_status) |
87 | { | 87 | { |
88 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | 88 | TALER_TESTING_unexpected_status (pls->is, |
89 | "Unexpected response code %u to command %s in %s:%u\n", | 89 | http_status); |
90 | http_status, | ||
91 | pls->is->commands[pls->is->ip].label, | ||
92 | __FILE__, | ||
93 | __LINE__); | ||
94 | TALER_TESTING_interpreter_fail (pls->is); | ||
95 | return; | ||
96 | } | 90 | } |
97 | if (NULL != pls->upload_reference) | 91 | if (NULL != pls->upload_reference) |
98 | { | 92 | { |
@@ -156,11 +150,12 @@ policy_lookup_run (void *cls, | |||
156 | } | 150 | } |
157 | pls->anastasis_pub = *anastasis_pub; | 151 | pls->anastasis_pub = *anastasis_pub; |
158 | } | 152 | } |
159 | pls->plo = ANASTASIS_policy_lookup (is->ctx, | 153 | pls->plo = ANASTASIS_policy_lookup ( |
160 | pls->anastasis_url, | 154 | TALER_TESTING_interpreter_get_context (is), |
161 | &pls->anastasis_pub, | 155 | pls->anastasis_url, |
162 | &policy_lookup_cb, | 156 | &pls->anastasis_pub, |
163 | pls); | 157 | &policy_lookup_cb, |
158 | pls); | ||
164 | if (NULL == pls->plo) | 159 | if (NULL == pls->plo) |
165 | { | 160 | { |
166 | GNUNET_break (0); | 161 | GNUNET_break (0); |