From 14436d1241ef2c37c4cee92dc1a3c61ab3d6b1dc Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 19 May 2016 17:47:27 +0200 Subject: finished implementing #4401 --- src/exchangedb/test_exchangedb.c | 64 ++++++++++++++++++++++++++++++++++++---- 1 file changed, 58 insertions(+), 6 deletions(-) (limited to 'src/exchangedb/test_exchangedb.c') diff --git a/src/exchangedb/test_exchangedb.c b/src/exchangedb/test_exchangedb.c index f896b49e3..e15d657e5 100644 --- a/src/exchangedb/test_exchangedb.c +++ b/src/exchangedb/test_exchangedb.c @@ -372,6 +372,12 @@ commit_coin_cmp (struct TALER_EXCHANGEDB_RefreshCommitCoin *rc1, */ #define MELT_NEW_COINS 5 +/** + * Which index was 'randomly' chosen for the reveal for the test? + */ +#define MELT_NOREVEAL_INDEX 1 + + static struct TALER_EXCHANGEDB_RefreshCommitCoin *commit_coins[TALER_CNC_KAPPA]; /** @@ -498,7 +504,7 @@ test_refresh_commit_links (struct TALER_EXCHANGEDB_Session *session, plugin->get_refresh_commit_link (plugin->cls, session, session_hash, - 1, + MELT_NOREVEAL_INDEX, &cl2)); for (i=0;ilink_data_enc; FAILIF (NULL == ldlp->ev_sig.rsa_signature); if ( (0 == @@ -752,7 +793,18 @@ test_melting (struct TALER_EXCHANGEDB_Session *session) plugin->free_link_data_list (plugin->cls, ldl); - /* FIXME #4401: test: get_transfer */ + { + int ok; + + ok = GNUNET_NO; + FAILIF (GNUNET_OK != + plugin->get_transfer (plugin->cls, + session, + &meltp->coin.coin_pub, + &check_transfer_data, + &ok)); + FAILIF (GNUNET_OK != ok); + } ret = GNUNET_OK; drop: -- cgit v1.2.3