summaryrefslogtreecommitdiff
path: root/src/exchangedb/test_exchangedb.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2023-02-05 20:15:26 +0100
committerChristian Grothoff <christian@grothoff.org>2023-02-05 20:15:26 +0100
commitf079cff4ae81ee2a6a522326cfecabaed49efd5b (patch)
treeea11f719eb2feafdec94017b0f76a989b366d7c6 /src/exchangedb/test_exchangedb.c
parent64b2bc455845022001dd26923df0477eebdf3a86 (diff)
downloadexchange-f079cff4ae81ee2a6a522326cfecabaed49efd5b.tar.gz
exchange-f079cff4ae81ee2a6a522326cfecabaed49efd5b.tar.bz2
exchange-f079cff4ae81ee2a6a522326cfecabaed49efd5b.zip
-fix transaction issue in exchange test
Diffstat (limited to 'src/exchangedb/test_exchangedb.c')
-rw-r--r--src/exchangedb/test_exchangedb.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/exchangedb/test_exchangedb.c b/src/exchangedb/test_exchangedb.c
index 0bb35df1a..6d07d2149 100644
--- a/src/exchangedb/test_exchangedb.c
+++ b/src/exchangedb/test_exchangedb.c
@@ -1,6 +1,6 @@
/*
This file is part of TALER
- Copyright (C) 2014-2022 Taler Systems SA
+ Copyright (C) 2014-2023 Taler Systems SA
TALER is free software; you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
@@ -1288,6 +1288,8 @@ run (void *cls)
TALER_string_to_amount (CURRENCY ":1.000010",
&amount_with_fee));
result = 4;
+ FAILIF (GNUNET_DB_STATUS_SUCCESS_NO_RESULTS !=
+ plugin->commit (plugin->cls));
now = GNUNET_TIME_timestamp_get ();
{
struct TALER_EXCHANGEDB_ReserveInInfo reserve = {
@@ -1337,6 +1339,9 @@ run (void *cls)
qsr);
}
FAILIF (GNUNET_OK !=
+ plugin->start (plugin->cls,
+ "test-2"));
+ FAILIF (GNUNET_OK !=
check_reserve (&reserve_pub,
value.value,
value.fraction,