- Use #defined constant, not direct numbers
authorBart Polot <bart@net.in.tum.de>
Tue, 29 Nov 2011 16:34:20 +0000 (16:34 +0000)
committerBart Polot <bart@net.in.tum.de>
Tue, 29 Nov 2011 16:34:20 +0000 (16:34 +0000)
src/mesh/test_mesh_small.c

index 93215f3cdbbe273a5d9bfa3b2db6b206080d94a5..5a83994f3bcd6d96619e89c848b45e0bd7570212 100644 (file)
@@ -475,14 +475,12 @@ do_test (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "***************** test: add peer 2\n");
   GNUNET_MESH_peer_request_connect_add (t, &d2->id);
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
-              "***************** test: schedule timeout in 30s\n");
+              "***************** test: schedule timeout in 90s\n");
   if (GNUNET_SCHEDULER_NO_TASK != disconnect_task)
   {
     GNUNET_SCHEDULER_cancel (disconnect_task);
     disconnect_task =
-        GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_relative_multiply
-                                      (GNUNET_TIME_UNIT_SECONDS, 30),
-                                      &disconnect_mesh_peers, NULL);
+        GNUNET_SCHEDULER_add_delayed (SHORT_TIME, &disconnect_mesh_peers, NULL);
   }
 }