- arm doesn't have time to finish in 30s
[oweals/gnunet.git] / src / mesh / test_mesh_small.c
index 6251f977c6f36fa3a2ecac48567f0358645bd5c3..c5afd576adc993ac96f1d0c69caa69d38c2977c5 100644 (file)
@@ -56,7 +56,7 @@ struct MeshPeer
 /**
  * Time to wait for stuff that should be rather fast
  */
-#define SHORT_TIME GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 30)
+#define SHORT_TIME GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 60)
 
 /**
  * DIFFERENT TESTS TO RUN
@@ -540,13 +540,16 @@ data_callback (void *cls, struct GNUNET_MESH_Tunnel *tunnel, void **tunnel_ctx,
     expected_target_client = 2L;
   }
 
-  if (SPEED == test && GNUNET_NO == initialized) // Initialization
+  if (GNUNET_NO == initialized)
   {
-    GNUNET_assert (2L == client);
     initialized = GNUNET_YES;
     start_time = GNUNET_TIME_absolute_get ();
-    GNUNET_SCHEDULER_add_now (&data_task, NULL);
-    return GNUNET_OK;
+    if (SPEED == test)
+    {
+      GNUNET_assert (2L == client);
+      GNUNET_SCHEDULER_add_now (&data_task, NULL);
+      return GNUNET_OK;
+    }
   }
 
   if (client == expected_target_client) // Normally 2 or 3