aboutsummaryrefslogtreecommitdiff
path: root/src/testing/testing_api_cmd_truth_store.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testing/testing_api_cmd_truth_store.c')
-rw-r--r--src/testing/testing_api_cmd_truth_store.c21
1 files changed, 6 insertions, 15 deletions
diff --git a/src/testing/testing_api_cmd_truth_store.c b/src/testing/testing_api_cmd_truth_store.c
index 0972210..2637702 100644
--- a/src/testing/testing_api_cmd_truth_store.c
+++ b/src/testing/testing_api_cmd_truth_store.c
@@ -125,17 +125,10 @@ truth_store_cb (void *cls,
125 struct TruthStoreState *tss = cls; 125 struct TruthStoreState *tss = cls;
126 126
127 tss->tso = NULL; 127 tss->tso = NULL;
128 if ( (NULL == ud) || 128 if (ud->http_status != tss->http_status)
129 (ud->http_status != tss->http_status) )
130 { 129 {
131 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, 130 TALER_TESTING_unexpected_status (tss->is,
132 "Unexpected response code %u to command %s in %s:%u\n", 131 ud->http_status);
133 (NULL != ud) ? ud->http_status : 0,
134 tss->is->commands[tss->is->ip].label,
135 __FILE__,
136 __LINE__);
137 TALER_TESTING_interpreter_fail (tss->is);
138 return;
139 } 132 }
140 switch (ud->us) 133 switch (ud->us)
141 { 134 {
@@ -273,7 +266,7 @@ truth_store_run (void *cls,
273 GNUNET_free (t); 266 GNUNET_free (t);
274 } 267 }
275 tss->tso = ANASTASIS_truth_store ( 268 tss->tso = ANASTASIS_truth_store (
276 is->ctx, 269 TALER_TESTING_interpreter_get_context (is),
277 tss->anastasis_url, 270 tss->anastasis_url,
278 &tss->uuid, 271 &tss->uuid,
279 tss->method, 272 tss->method,
@@ -345,10 +338,8 @@ truth_store_traits (void *cls,
345 ANASTASIS_TESTING_make_trait_truth_key (&tss->key), 338 ANASTASIS_TESTING_make_trait_truth_key (&tss->key),
346 ANASTASIS_TESTING_make_trait_eks (&tss->encrypted_keyshare), 339 ANASTASIS_TESTING_make_trait_eks (&tss->encrypted_keyshare),
347 ANASTASIS_TESTING_make_trait_payment_secret (&tss->payment_secret_response), 340 ANASTASIS_TESTING_make_trait_payment_secret (&tss->payment_secret_response),
348 TALER_TESTING_make_trait_payto_uri ( 341 TALER_TESTING_make_trait_payto_uri (tss->pay_uri),
349 (const char **) &tss->pay_uri), 342 ANASTASIS_TESTING_make_trait_filename (tss->filename),
350 ANASTASIS_TESTING_make_trait_filename (
351 (const char **) &tss->filename),
352 TALER_TESTING_trait_end () 343 TALER_TESTING_trait_end ()
353 }; 344 };
354 345