summaryrefslogtreecommitdiff
path: root/src/exchangedb/test_exchangedb.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-05-18 17:19:32 +0200
committerChristian Grothoff <christian@grothoff.org>2016-05-18 17:19:32 +0200
commit8ff8c7b8c7015970c65849e0550ed4a0e54be2ad (patch)
tree244fcee453b05aedbd8375bfcb3a25ab7e3a46cd /src/exchangedb/test_exchangedb.c
parente905e9e245149627bdecd14370c3bde3fd079375 (diff)
downloadexchange-8ff8c7b8c7015970c65849e0550ed4a0e54be2ad.tar.gz
exchange-8ff8c7b8c7015970c65849e0550ed4a0e54be2ad.tar.bz2
exchange-8ff8c7b8c7015970c65849e0550ed4a0e54be2ad.zip
fix table dropping logic to ensure testcases run in fresh environment
Diffstat (limited to 'src/exchangedb/test_exchangedb.c')
-rw-r--r--src/exchangedb/test_exchangedb.c24
1 files changed, 3 insertions, 21 deletions
diff --git a/src/exchangedb/test_exchangedb.c b/src/exchangedb/test_exchangedb.c
index 3169f06db..9b84d739d 100644
--- a/src/exchangedb/test_exchangedb.c
+++ b/src/exchangedb/test_exchangedb.c
@@ -846,23 +846,7 @@ run (void *cls)
result = 77;
return;
}
- if (GNUNET_OK !=
- plugin->create_tables (plugin->cls))
- {
- result = 77;
- goto drop;
- }
- if (NULL !=
- (session = plugin->get_session (plugin->cls)))
- {
- if (GNUNET_OK !=
- plugin->drop_tables (plugin->cls,
- session))
- {
- result = 77;
- goto drop;
- }
- }
+ (void) plugin->drop_tables (plugin->cls);
if (GNUNET_OK !=
plugin->create_tables (plugin->cls))
{
@@ -1283,10 +1267,8 @@ run (void *cls)
plugin->free_reserve_history (plugin->cls,
rh);
rh = NULL;
- if (NULL != session)
- GNUNET_break (GNUNET_OK ==
- plugin->drop_tables (plugin->cls,
- session));
+ GNUNET_break (GNUNET_OK ==
+ plugin->drop_tables (plugin->cls));
if (NULL != dkp)
destroy_denom_key_pair (dkp);
if (NULL != cbc.sig.rsa_signature)