aboutsummaryrefslogtreecommitdiff
path: root/src/core/test_core_api_start_only.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-11-13 20:37:37 +0000
committerChristian Grothoff <christian@grothoff.org>2010-11-13 20:37:37 +0000
commitdb6c313c75a36bc4a27971d7bd8da3e938c7c02a (patch)
treeea4dac1648edb33ccafb1b12652236261f538abd /src/core/test_core_api_start_only.c
parent56f7c4934c0d9c18370fdcff5e5a3cd29363d474 (diff)
downloadgnunet-db6c313c75a36bc4a27971d7bd8da3e938c7c02a.tar.gz
gnunet-db6c313c75a36bc4a27971d7bd8da3e938c7c02a.zip
the big core API/protocol change, breaks all testcases using core, since the code is still buggy
Diffstat (limited to 'src/core/test_core_api_start_only.c')
-rw-r--r--src/core/test_core_api_start_only.c17
1 files changed, 3 insertions, 14 deletions
diff --git a/src/core/test_core_api_start_only.c b/src/core/test_core_api_start_only.c
index e39179196..6c042a2b2 100644
--- a/src/core/test_core_api_start_only.c
+++ b/src/core/test_core_api_start_only.c
@@ -35,12 +35,6 @@
35 35
36#define START_ARM GNUNET_YES 36#define START_ARM GNUNET_YES
37 37
38
39/**
40 * How long until we give up on transmitting the message?
41 */
42#define TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 120)
43
44#define MTYPE 12345 38#define MTYPE 12345
45 39
46struct PeerContext 40struct PeerContext
@@ -71,8 +65,7 @@ static int ok;
71static void 65static void
72connect_notify (void *cls, 66connect_notify (void *cls,
73 const struct GNUNET_PeerIdentity *peer, 67 const struct GNUNET_PeerIdentity *peer,
74 struct GNUNET_TIME_Relative latency, 68 const struct GNUNET_TRANSPORT_ATS_Information *atsi)
75 uint32_t distance)
76{ 69{
77} 70}
78 71
@@ -88,8 +81,7 @@ static int
88inbound_notify (void *cls, 81inbound_notify (void *cls,
89 const struct GNUNET_PeerIdentity *other, 82 const struct GNUNET_PeerIdentity *other,
90 const struct GNUNET_MessageHeader *message, 83 const struct GNUNET_MessageHeader *message,
91 struct GNUNET_TIME_Relative latency, 84 const struct GNUNET_TRANSPORT_ATS_Information *atsi)
92 uint32_t distance)
93{ 85{
94 return GNUNET_OK; 86 return GNUNET_OK;
95} 87}
@@ -99,8 +91,7 @@ static int
99outbound_notify (void *cls, 91outbound_notify (void *cls,
100 const struct GNUNET_PeerIdentity *other, 92 const struct GNUNET_PeerIdentity *other,
101 const struct GNUNET_MessageHeader *message, 93 const struct GNUNET_MessageHeader *message,
102 struct GNUNET_TIME_Relative latency, 94 const struct GNUNET_TRANSPORT_ATS_Information *atsi)
103 uint32_t distance)
104{ 95{
105 return GNUNET_OK; 96 return GNUNET_OK;
106} 97}
@@ -126,7 +117,6 @@ init_notify (void *cls,
126 { 117 {
127 /* connect p2 */ 118 /* connect p2 */
128 GNUNET_CORE_connect (p2.cfg, 1, 119 GNUNET_CORE_connect (p2.cfg, 1,
129 TIMEOUT,
130 &p2, 120 &p2,
131 &init_notify, 121 &init_notify,
132 &connect_notify, 122 &connect_notify,
@@ -173,7 +163,6 @@ run (void *cls,
173 setup_peer (&p1, "test_core_api_peer1.conf"); 163 setup_peer (&p1, "test_core_api_peer1.conf");
174 setup_peer (&p2, "test_core_api_peer2.conf"); 164 setup_peer (&p2, "test_core_api_peer2.conf");
175 GNUNET_CORE_connect (p1.cfg, 1, 165 GNUNET_CORE_connect (p1.cfg, 1,
176 TIMEOUT,
177 &p1, 166 &p1,
178 &init_notify, 167 &init_notify,
179 &connect_notify, 168 &connect_notify,