summaryrefslogtreecommitdiff
path: root/src/exchangedb/test_exchangedb.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-06-05 21:26:27 +0200
committerChristian Grothoff <christian@grothoff.org>2019-06-05 21:26:27 +0200
commit2f0015b80385364ffbacca71504a96a46db6f0e0 (patch)
tree251b2f5a0329c668fd75fda2ad367c29c2316dc1 /src/exchangedb/test_exchangedb.c
parent466a7b7018c0a53a27e1d431019f6b5f7b3562e4 (diff)
downloadexchange-2f0015b80385364ffbacca71504a96a46db6f0e0.tar.gz
exchange-2f0015b80385364ffbacca71504a96a46db6f0e0.tar.bz2
exchange-2f0015b80385364ffbacca71504a96a46db6f0e0.zip
add locking to avoid transaction retries
Diffstat (limited to 'src/exchangedb/test_exchangedb.c')
-rw-r--r--src/exchangedb/test_exchangedb.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/exchangedb/test_exchangedb.c b/src/exchangedb/test_exchangedb.c
index db40f365..cab05f08 100644
--- a/src/exchangedb/test_exchangedb.c
+++ b/src/exchangedb/test_exchangedb.c
@@ -1995,6 +1995,10 @@ run (void *cls)
result = 10;
deposit2 = deposit;
+ FAILIF (GNUNET_OK !=
+ plugin->start (plugin->cls,
+ session,
+ "test-2"));
RND_BLK (&deposit2.merchant_pub); /* should fail if merchant is different */
FAILIF (GNUNET_DB_STATUS_SUCCESS_NO_RESULTS !=
plugin->have_deposit (plugin->cls,
@@ -2010,6 +2014,9 @@ run (void *cls)
GNUNET_YES));
FAILIF (GNUNET_OK !=
test_melting (session));
+ FAILIF (GNUNET_DB_STATUS_SUCCESS_NO_RESULTS !=
+ plugin->commit (plugin->cls,
+ session));
/* test insert_refund! */