aboutsummaryrefslogtreecommitdiff
path: root/src/rps/test_rps.c
diff options
context:
space:
mode:
authorJulius Bünger <buenger@mytum.de>2018-06-27 03:58:42 +0200
committerJulius Bünger <buenger@mytum.de>2018-06-27 03:59:59 +0200
commit6ac64e16ee69704579ebfd942183e04f32f60590 (patch)
treee8f10ae4a57170f265de3ea07329c522407dda51 /src/rps/test_rps.c
parent332d987a4c618f4d51abe9df9e662a59cc68b51c (diff)
downloadgnunet-6ac64e16ee69704579ebfd942183e04f32f60590.tar.gz
gnunet-6ac64e16ee69704579ebfd942183e04f32f60590.zip
fix rps service/test: handle pending messages properly
Diffstat (limited to 'src/rps/test_rps.c')
-rw-r--r--src/rps/test_rps.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/rps/test_rps.c b/src/rps/test_rps.c
index e7b82458a..08424022f 100644
--- a/src/rps/test_rps.c
+++ b/src/rps/test_rps.c
@@ -841,6 +841,13 @@ seed_peers (void *cls)
841 unsigned int amount; 841 unsigned int amount;
842 unsigned int i; 842 unsigned int i;
843 843
844 if (GNUNET_YES == in_shutdown || GNUNET_YES == post_test)
845 {
846 return;
847 }
848
849 GNUNET_assert (NULL != peer->rps_handle);
850
844 // TODO if malicious don't seed mal peers 851 // TODO if malicious don't seed mal peers
845 amount = round (.5 * num_peers); 852 amount = round (.5 * num_peers);
846 853
@@ -998,9 +1005,11 @@ rps_connect_adapter (void *cls,
998 struct GNUNET_RPS_Handle *h; 1005 struct GNUNET_RPS_Handle *h;
999 1006
1000 h = GNUNET_RPS_connect (cfg); 1007 h = GNUNET_RPS_connect (cfg);
1008 GNUNET_assert (NULL != h);
1001 1009
1002 if (NULL != cur_test_run.pre_test) 1010 if (NULL != cur_test_run.pre_test)
1003 cur_test_run.pre_test (cls, h); 1011 cur_test_run.pre_test (cls, h);
1012 GNUNET_assert (NULL != h);
1004 1013
1005 return h; 1014 return h;
1006} 1015}