aboutsummaryrefslogtreecommitdiff
path: root/src/cadet/test_cadeT_util.c
diff options
context:
space:
mode:
authorxrs <xrs@mail36.net>2020-03-05 09:32:49 +0100
committerxrs <xrs@mail36.net>2020-05-21 22:46:49 +0200
commit81405b6abff2f0b6fb774bdf227ded577c1ce2de (patch)
treedf18967091547bb3af7ddbf712764e7ea3741282 /src/cadet/test_cadeT_util.c
parentf5da9cfbe9afaa471272127b61d6e17982209d03 (diff)
downloadgnunet-81405b6abff2f0b6fb774bdf227ded577c1ce2de.tar.gz
gnunet-81405b6abff2f0b6fb774bdf227ded577c1ce2de.zip
add condition for check_test_readyness; find kx_initiator
Diffstat (limited to 'src/cadet/test_cadeT_util.c')
-rw-r--r--src/cadet/test_cadeT_util.c41
1 files changed, 1 insertions, 40 deletions
diff --git a/src/cadet/test_cadeT_util.c b/src/cadet/test_cadeT_util.c
index 6580b9907..fc59349aa 100644
--- a/src/cadet/test_cadeT_util.c
+++ b/src/cadet/test_cadeT_util.c
@@ -50,43 +50,6 @@ int test_result = 0;
50 */ 50 */
51static int peerinfo_cnt = 0; 51static int peerinfo_cnt = 0;
52 52
53/**
54 * Structure for storing information of testbed peers.
55 */
56struct TEST_PEERS
57{
58 /**
59 * Index of the peer.
60 */
61 int idx;
62
63 /**
64 * Peer Identity.
65 */
66 struct GNUNET_PeerIdentity id;
67
68 /**
69 * Handle of TESTBED peer.
70 */
71 struct GNUNET_TESTBED_Peer *testbed_peer;
72
73 /**
74 * Testbed management is finished and test peer is ready for test logic.
75 */
76 int ready;
77
78 /**
79 * Channel of initiating peer.
80 */
81 struct GNUNET_CADET_Channel *channel;
82
83 /**
84 * CADET handle.
85 */
86 struct GNUNET_CADET_Handle *cadet;
87
88} test_peers[REQUESTED_PEERS];
89
90/************************** TESBED MANAGEMENT *****************************/ 53/************************** TESBED MANAGEMENT *****************************/
91 54
92static void 55static void
@@ -197,9 +160,7 @@ check_test_readyness (void *cls,
197{ 160{
198 GNUNET_log (GNUNET_ERROR_TYPE_INFO, "%s\n", __func__); 161 GNUNET_log (GNUNET_ERROR_TYPE_INFO, "%s\n", __func__);
199 162
200 // FIXME: check, if all peers are ready, then continue with the 163 if (NULL != test_peers[0].cadet && NULL != test_peers[1].cadet)
201 // test logic.
202 if (GNUNET_OK)
203 run_test(); 164 run_test();
204} 165}
205 166