summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-05-31 21:00:03 +0000
committerChristian Grothoff <christian@grothoff.org>2012-05-31 21:00:03 +0000
commitbc071cd50ad7d58e7ce2e6e5d535eedb084b3361 (patch)
treeec39c42ede59c646cc64171a031003d2874e39b4
parent22d982d05f63fd484376de3124bf92a4620603d6 (diff)
-increasing timeout to hopefully help sparcbot
-rw-r--r--src/transport/test_transport_api_restart_2peers.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/transport/test_transport_api_restart_2peers.c b/src/transport/test_transport_api_restart_2peers.c
index 9fd9c0da6..22b602c17 100644
--- a/src/transport/test_transport_api_restart_2peers.c
+++ b/src/transport/test_transport_api_restart_2peers.c
@@ -41,12 +41,12 @@
/**
* 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[])
{