-increasing timeout to hopefully help sparcbot
authorChristian Grothoff <christian@grothoff.org>
Thu, 31 May 2012 21:00:03 +0000 (21:00 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 31 May 2012 21:00:03 +0000 (21:00 +0000)
src/transport/test_transport_api_restart_2peers.c

index 9fd9c0da6946ecbd47d72543ebbe4af6d7779f13..22b602c17e07f3d5200dcd24f8e31b49610f2705 100644 (file)
 /**
  * How long until we give up on transmitting the message?
  */
-#define TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 30)
+#define TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 90)
 
 /**
  * How long until we give up on transmitting the message?
  */
-#define TIMEOUT_TRANSMIT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 60)
+#define TIMEOUT_TRANSMIT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 120)
 
 #define MTYPE 12345
 
@@ -102,6 +102,7 @@ end ()
   GNUNET_TRANSPORT_TESTING_stop_peer (tth, p2);
 }
 
+
 static void
 end_badly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
 {
@@ -142,6 +143,7 @@ end_badly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
   ok = GNUNET_SYSERR;
 }
 
+
 static void
 reconnect (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
 {
@@ -154,6 +156,7 @@ reconnect (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
       GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_SECONDS, &reconnect, p);
 }
 
+
 static void
 restart_cb (struct PeerContext *p, void *cls)
 {
@@ -171,6 +174,7 @@ restart_cb (struct PeerContext *p, void *cls)
   reconnect_task = GNUNET_SCHEDULER_add_now (&reconnect, p);
 }
 
+
 static void
 restart (struct PeerContext *p, char *cfg_file)
 {
@@ -181,6 +185,7 @@ restart (struct PeerContext *p, char *cfg_file)
   return;
 }
 
+
 static void
 notify_receive (void *cls, const struct GNUNET_PeerIdentity *peer,
                 const struct GNUNET_MessageHeader *message,
@@ -356,7 +361,6 @@ testing_connect_cb (struct PeerContext *p1, struct PeerContext *p2, void *cls)
 }
 
 
-
 static void
 start_cb (struct PeerContext *p, void *cls)
 {
@@ -382,6 +386,7 @@ start_cb (struct PeerContext *p, void *cls)
 
 }
 
+
 static void
 run (void *cls, char *const *args, const char *cfgfile,
      const struct GNUNET_CONFIGURATION_Handle *cfg)
@@ -433,6 +438,7 @@ check ()
   return ok;
 }
 
+
 int
 main (int argc, char *argv[])
 {