diff options
Diffstat (limited to 'src/auditordb/test_auditordb.c')
-rw-r--r-- | src/auditordb/test_auditordb.c | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/src/auditordb/test_auditordb.c b/src/auditordb/test_auditordb.c index 8f1b7da8a..3968f0218 100644 --- a/src/auditordb/test_auditordb.c +++ b/src/auditordb/test_auditordb.c | |||
@@ -291,6 +291,7 @@ run (void *cls) | |||
291 | TALER_string_to_amount (CURRENCY ":23.456789", | 291 | TALER_string_to_amount (CURRENCY ":23.456789", |
292 | &withdraw_fee_balance)); | 292 | &withdraw_fee_balance)); |
293 | 293 | ||
294 | |||
294 | FAILIF (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT != | 295 | FAILIF (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT != |
295 | plugin->insert_reserve_info (plugin->cls, | 296 | plugin->insert_reserve_info (plugin->cls, |
296 | session, | 297 | session, |
@@ -298,7 +299,8 @@ run (void *cls) | |||
298 | &master_pub, | 299 | &master_pub, |
299 | &reserve_balance, | 300 | &reserve_balance, |
300 | &withdraw_fee_balance, | 301 | &withdraw_fee_balance, |
301 | past)); | 302 | past, |
303 | "payto://bla/blub")); | ||
302 | 304 | ||
303 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, | 305 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, |
304 | "Test: update_reserve_info\n"); | 306 | "Test: update_reserve_info\n"); |
@@ -315,6 +317,8 @@ run (void *cls) | |||
315 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, | 317 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, |
316 | "Test: get_reserve_info\n"); | 318 | "Test: get_reserve_info\n"); |
317 | 319 | ||
320 | char *payto; | ||
321 | |||
318 | FAILIF (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT != | 322 | FAILIF (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT != |
319 | plugin->get_reserve_info (plugin->cls, | 323 | plugin->get_reserve_info (plugin->cls, |
320 | session, | 324 | session, |
@@ -323,8 +327,11 @@ run (void *cls) | |||
323 | &rowid, | 327 | &rowid, |
324 | &reserve_balance2, | 328 | &reserve_balance2, |
325 | &withdraw_fee_balance2, | 329 | &withdraw_fee_balance2, |
326 | &date)); | 330 | &date, |
327 | 331 | &payto)); | |
332 | FAILIF (0 != strcmp (payto, | ||
333 | "payto://bla/blub")); | ||
334 | GNUNET_free (payto); | ||
328 | FAILIF (0 != GNUNET_memcmp (&date, &future) | 335 | FAILIF (0 != GNUNET_memcmp (&date, &future) |
329 | || 0 != GNUNET_memcmp (&reserve_balance2, &reserve_balance) | 336 | || 0 != GNUNET_memcmp (&reserve_balance2, &reserve_balance) |
330 | || 0 != GNUNET_memcmp (&withdraw_fee_balance2, | 337 | || 0 != GNUNET_memcmp (&withdraw_fee_balance2, |
@@ -725,7 +732,7 @@ run (void *cls) | |||
725 | 732 | ||
726 | result = 0; | 733 | result = 0; |
727 | 734 | ||
728 | drop: | 735 | drop: |
729 | if (NULL != session) | 736 | if (NULL != session) |
730 | { | 737 | { |
731 | plugin->rollback (plugin->cls, | 738 | plugin->rollback (plugin->cls, |
@@ -746,7 +753,7 @@ run (void *cls) | |||
746 | GNUNET_break (GNUNET_OK == | 753 | GNUNET_break (GNUNET_OK == |
747 | plugin->drop_tables (plugin->cls, | 754 | plugin->drop_tables (plugin->cls, |
748 | GNUNET_YES)); | 755 | GNUNET_YES)); |
749 | unload: | 756 | unload: |
750 | TALER_AUDITORDB_plugin_unload (plugin); | 757 | TALER_AUDITORDB_plugin_unload (plugin); |
751 | plugin = NULL; | 758 | plugin = NULL; |
752 | } | 759 | } |