aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSree Harsha Totakura <totakura@in.tum.de>2013-04-03 12:17:03 +0000
committerSree Harsha Totakura <totakura@in.tum.de>2013-04-03 12:17:03 +0000
commit6d04a07b8b6f0553f535e224d22c9bfe4df4a704 (patch)
treeea580d2f81d2c7ff145b4385582a68e6ce51cf68 /src
parent4e6ef3777767569c4b92ca630837d1a1b1248e4f (diff)
downloadgnunet-6d04a07b8b6f0553f535e224d22c9bfe4df4a704.tar.gz
gnunet-6d04a07b8b6f0553f535e224d22c9bfe4df4a704.zip
- use topology service instead of statistics as statistics may not terminate when asked for
Diffstat (limited to 'src')
-rw-r--r--src/testbed/gnunet-service-testbed.c2
-rw-r--r--src/testbed/test_testbed_api_peers_manage_services.c14
2 files changed, 8 insertions, 8 deletions
diff --git a/src/testbed/gnunet-service-testbed.c b/src/testbed/gnunet-service-testbed.c
index 84a508b34..4aaf42620 100644
--- a/src/testbed/gnunet-service-testbed.c
+++ b/src/testbed/gnunet-service-testbed.c
@@ -2255,7 +2255,7 @@ handle_manage_peer_service (void *cls, struct GNUNET_SERVER_Client *client,
2255 GNUNET_ARM_request_service_stop (mctx->ah, service, 2255 GNUNET_ARM_request_service_stop (mctx->ah, service,
2256 GST_timeout, 2256 GST_timeout,
2257 service_manage_result_cb, 2257 service_manage_result_cb,
2258 mctx); 2258 mctx);
2259 GNUNET_SERVER_receive_done (client, GNUNET_OK); 2259 GNUNET_SERVER_receive_done (client, GNUNET_OK);
2260 return; 2260 return;
2261 2261
diff --git a/src/testbed/test_testbed_api_peers_manage_services.c b/src/testbed/test_testbed_api_peers_manage_services.c
index cccccd207..12af939fb 100644
--- a/src/testbed/test_testbed_api_peers_manage_services.c
+++ b/src/testbed/test_testbed_api_peers_manage_services.c
@@ -108,7 +108,7 @@ enum {
108static void 108static void
109do_abort (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) 109do_abort (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
110{ 110{
111 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Test timed out -- Aborting\n"); 111 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Aborting\n");
112 abort_task = GNUNET_SCHEDULER_NO_TASK; 112 abort_task = GNUNET_SCHEDULER_NO_TASK;
113 if (NULL != op) 113 if (NULL != op)
114 { 114 {
@@ -142,10 +142,10 @@ op_comp_cb (void *cls,
142 state = STATE_SERVICE_DOWN; 142 state = STATE_SERVICE_DOWN;
143 op = GNUNET_TESTBED_peer_manage_service (dummy_cls, 143 op = GNUNET_TESTBED_peer_manage_service (dummy_cls,
144 peers[1], 144 peers[1],
145 "statistics", 145 "topology",
146 op_comp_cb, 146 op_comp_cb,
147 dummy_cls, 147 dummy_cls,
148 1); 148 0);
149 break; 149 break;
150 case STATE_SERVICE_DOWN: 150 case STATE_SERVICE_DOWN:
151 state = STATE_SERVICE_UP; 151 state = STATE_SERVICE_UP;
@@ -182,10 +182,10 @@ test_master (void *cls, unsigned int num_peers,
182 peers = peers_; 182 peers = peers_;
183 op = GNUNET_TESTBED_peer_manage_service (dummy_cls, 183 op = GNUNET_TESTBED_peer_manage_service (dummy_cls,
184 peers[1], 184 peers[1],
185 "statistics", 185 "topology",
186 op_comp_cb, 186 op_comp_cb,
187 dummy_cls, 187 dummy_cls,
188 0); 188 1);
189 FAIL_TEST (NULL != op, return); 189 FAIL_TEST (NULL != op, return);
190 abort_task = GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_relative_multiply 190 abort_task = GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_relative_multiply
191 (GNUNET_TIME_UNIT_MINUTES, 1), 191 (GNUNET_TIME_UNIT_MINUTES, 1),
@@ -200,8 +200,8 @@ int
200main (int argc, char **argv) 200main (int argc, char **argv)
201{ 201{
202 state = STATE_INIT; 202 state = STATE_INIT;
203 (void) GNUNET_TESTBED_test_run ("test_testbed_api_statistics", 203 (void) GNUNET_TESTBED_test_run ("test_testbed_api_peers_manage_services",
204 "test_testbed_api_statistics.conf", 204 "test_testbed_api.conf",
205 NUM_PEERS, 205 NUM_PEERS,
206 1LL, NULL, NULL, 206 1LL, NULL, NULL,
207 &test_master, NULL); 207 &test_master, NULL);