diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-04-24 11:50:15 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-04-24 11:50:15 +0000 |
commit | a0683a115049af97d5d6c77e8269a8f59d86787e (patch) | |
tree | 8bb1bc72f42904c7479ebfbbe403a1230259381f /src/datastore/test_datastore_api.c | |
parent | 871ad1c71484dd7dccfdbfc758394f5ce2791723 (diff) |
-trying to fix test shutdown sequence if database not setup
Diffstat (limited to 'src/datastore/test_datastore_api.c')
-rw-r--r-- | src/datastore/test_datastore_api.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/datastore/test_datastore_api.c b/src/datastore/test_datastore_api.c index 25836ca663..f6945ed2ec 100644 --- a/src/datastore/test_datastore_api.c +++ b/src/datastore/test_datastore_api.c @@ -462,12 +462,14 @@ run_tests (void *cls, int32_t success, struct GNUNET_TIME_Absolute min_expiratio return; case GNUNET_NO: FPRINTF (stderr, "%s", "Test 'put' operation failed, key already exists (!?)\n"); + GNUNET_DATASTORE_disconnect (datastore, GNUNET_YES); GNUNET_free (crc); return; case GNUNET_SYSERR: FPRINTF (stderr, "Test 'put' operation failed with error `%s' database likely not setup, skipping test.\n", msg); + GNUNET_DATASTORE_disconnect (datastore, GNUNET_YES); GNUNET_free (crc); return; default: |