activating test /refresh/link (still fails)

This commit is contained in:
Christian Grothoff 2015-08-14 23:09:34 +02:00
parent a8f65175f4
commit aa79e52fde
2 changed files with 11 additions and 2 deletions

View File

@ -1535,6 +1535,7 @@ interpreter_run (void *cls,
ref = find_command (is, ref = find_command (is,
md->coin_ref); md->coin_ref);
} }
GNUNET_assert (OC_WITHDRAW_SIGN == ref->oc);
/* finally, use private key from withdraw sign command */ /* finally, use private key from withdraw sign command */
cmd->details.refresh_link.rlh cmd->details.refresh_link.rlh
= TALER_MINT_refresh_link (mint, = TALER_MINT_refresh_link (mint,
@ -1961,14 +1962,14 @@ run (void *cls,
.expected_response_code = MHD_HTTP_OK, .expected_response_code = MHD_HTTP_OK,
.details.refresh_reveal.melt_ref = "refresh-melt-1" }, .details.refresh_reveal.melt_ref = "refresh-melt-1" },
#if TEST_REFRESH
/* Test that /refresh/link works */ /* Test that /refresh/link works */
{ .oc = OC_REFRESH_LINK, { .oc = OC_REFRESH_LINK,
.label = "refresh-link-1", .label = "refresh-link-1",
.expected_response_code = MHD_HTTP_OK, .expected_response_code = MHD_HTTP_OK,
.details.refresh_link.reveal_ref = "refresh-reveal-1" }, .details.refresh_link.reveal_ref = "refresh-reveal-1" },
#if TEST_REFRESH
/* Test successfully spending coins from the refresh operation: /* Test successfully spending coins from the refresh operation:
first EUR:1 */ first EUR:1 */
{ .oc = OC_DEPOSIT, { .oc = OC_DEPOSIT,

View File

@ -2179,6 +2179,9 @@ postgres_insert_refresh_melt (void *cls,
} }
if (GNUNET_NO == ret) /* if not, insert it */ if (GNUNET_NO == ret) /* if not, insert it */
{ {
fprintf (stderr,
"Melting coin coin %s\n",
TALER_B2S (&melt->coin.coin_pub));
ret = insert_known_coin (cls, ret = insert_known_coin (cls,
session, session,
&melt->coin); &melt->coin);
@ -3015,8 +3018,13 @@ postgres_get_transfer (void *cls,
return GNUNET_SYSERR; return GNUNET_SYSERR;
} }
nrows = PQntuples (result); nrows = PQntuples (result);
fprintf (stderr,
"linkage for coin %s resulted in %d results\n",
TALER_B2S (coin_pub),
nrows);
if (0 == nrows) if (0 == nrows)
{ {
/* no matches found */
PQclear (result); PQclear (result);
return GNUNET_NO; return GNUNET_NO;
} }