commit 2a0bf277efba7c5c9de0f30ff23a27b4ce137c80
parent eaf487f323012aba8e7fb82a3ddb4a7f1d5363b7
Author: Christian Grothoff <christian@grothoff.org>
Date: Sun, 27 Feb 2022 12:13:44 +0100
-fix compiler warnings / adjust test to new DB schema
Diffstat:
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/src/stasis/test_anastasis_db.c b/src/stasis/test_anastasis_db.c
@@ -151,7 +151,7 @@ run (void *cls)
&paymentSecretP,
&amount));
{
- struct GNUNET_TIME_Absolute res_time;
+ struct GNUNET_TIME_Timestamp res_time;
FAILIF (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT !=
plugin->increment_lifetime (plugin->cls,
@@ -192,11 +192,13 @@ run (void *cls)
&recoveryDataHash,
recovery_data,
strlen (recovery_data),
+ "meta-data",
+ strlen ("meta-data"),
&paymentSecretP,
&docVersion));
{
uint32_t vrs;
- struct GNUNET_TIME_Absolute exp;
+ struct GNUNET_TIME_Timestamp exp;
FAILIF (ANASTASIS_DB_ACCOUNT_STATUS_VALID_HASH_RETURNED !=
plugin->lookup_account (plugin->cls,
@@ -240,7 +242,7 @@ run (void *cls)
GNUNET_free (res_recovery_data);
{
- struct GNUNET_TIME_Absolute rt;
+ struct GNUNET_TIME_Timestamp rt;
FAILIF (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT !=
plugin->create_challenge_code (plugin->cls,
@@ -250,10 +252,10 @@ run (void *cls)
3, /* retry counter */
&rt,
&challenge_code));
- FAILIF (0 != rt.abs_value_us);
+ FAILIF (! GNUNET_TIME_absolute_is_zero (rt.abs_time));
}
{
- struct GNUNET_TIME_Absolute rt;
+ struct GNUNET_TIME_Timestamp rt;
uint64_t c2;
FAILIF (GNUNET_DB_STATUS_SUCCESS_ONE_RESULT !=