aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2011-11-29 16:34:20 +0000
committerBart Polot <bart@net.in.tum.de>2011-11-29 16:34:20 +0000
commitb312a0e714d1782f1258b3aaa697f8f36315cd60 (patch)
tree7bf8473cee070e35a591c94777e0358565756d28 /src
parent151fef37ec3f9ff80e0be96bdd5361333fcbdb29 (diff)
downloadgnunet-b312a0e714d1782f1258b3aaa697f8f36315cd60.tar.gz
gnunet-b312a0e714d1782f1258b3aaa697f8f36315cd60.zip
- Use #defined constant, not direct numbers
Diffstat (limited to 'src')
-rw-r--r--src/mesh/test_mesh_small.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mesh/test_mesh_small.c b/src/mesh/test_mesh_small.c
index 93215f3cd..5a83994f3 100644
--- a/src/mesh/test_mesh_small.c
+++ b/src/mesh/test_mesh_small.c
@@ -475,14 +475,12 @@ do_test (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
475 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "***************** test: add peer 2\n"); 475 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "***************** test: add peer 2\n");
476 GNUNET_MESH_peer_request_connect_add (t, &d2->id); 476 GNUNET_MESH_peer_request_connect_add (t, &d2->id);
477 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 477 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
478 "***************** test: schedule timeout in 30s\n"); 478 "***************** test: schedule timeout in 90s\n");
479 if (GNUNET_SCHEDULER_NO_TASK != disconnect_task) 479 if (GNUNET_SCHEDULER_NO_TASK != disconnect_task)
480 { 480 {
481 GNUNET_SCHEDULER_cancel (disconnect_task); 481 GNUNET_SCHEDULER_cancel (disconnect_task);
482 disconnect_task = 482 disconnect_task =
483 GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_relative_multiply 483 GNUNET_SCHEDULER_add_delayed (SHORT_TIME, &disconnect_mesh_peers, NULL);
484 (GNUNET_TIME_UNIT_SECONDS, 30),
485 &disconnect_mesh_peers, NULL);
486 } 484 }
487} 485}
488 486