[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] branch master updated: we probably want to actuall
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] branch master updated: we probably want to actually test the sync |
Date: |
Fri, 11 Oct 2019 21:39:58 +0200 |
This is an automated email from the git hooks/post-receive script.
martin-schanzenbach pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new 8ed3ad85f we probably want to actually test the sync
8ed3ad85f is described below
commit 8ed3ad85fa8c0faa213157610379d69875b10ccb
Author: Schanzenbach, Martin <address@hidden>
AuthorDate: Fri Oct 11 21:37:41 2019 +0200
we probably want to actually test the sync
---
src/peerstore/test_peerstore_api_sync.c | 16 +++++++++++++---
1 file changed, 13 insertions(+), 3 deletions(-)
diff --git a/src/peerstore/test_peerstore_api_sync.c
b/src/peerstore/test_peerstore_api_sync.c
index 503cb2f1e..bfeae6ed8 100644
--- a/src/peerstore/test_peerstore_api_sync.c
+++ b/src/peerstore/test_peerstore_api_sync.c
@@ -109,6 +109,7 @@ iterate_cb (void *cls,
static void
test_cont (void *cls)
{
+ h = GNUNET_PEERSTORE_connect (cfg);
GNUNET_PEERSTORE_iterate (h,
subsystem,
&pid, key,
@@ -116,6 +117,16 @@ test_cont (void *cls)
NULL);
}
+static void
+disc_cont (void *cls)
+{
+ GNUNET_PEERSTORE_disconnect (h, GNUNET_YES);
+ h = NULL;
+ GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_SECONDS,
+ &test_cont,
+ NULL);
+}
+
static void
store_cont (void *cls, int success)
{
@@ -125,9 +136,8 @@ store_cont (void *cls, int success)
the test may fail non-deterministically if the new
connection is faster than the cleanup routine of the
old one. */
- GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_SECONDS,
- &test_cont,
- NULL);
+ GNUNET_SCHEDULER_add_now (&disc_cont,
+ NULL);
}
/**
--
To stop receiving notification emails like this one, please contact
address@hidden.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [gnunet] branch master updated: we probably want to actually test the sync,
gnunet <=