From e0d1527b589a41c03887754ae8e9abedf1716d45 Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Thu, 25 Aug 2011 09:10:11 +0000 Subject: [PATCH] minor changes --- src/transport/test_transport_startonly.c | 9 ++++++--- src/transport/test_transport_startonly.conf | 15 +++++++++++++++ 2 files changed, 21 insertions(+), 3 deletions(-) create mode 100644 src/transport/test_transport_startonly.conf diff --git a/src/transport/test_transport_startonly.c b/src/transport/test_transport_startonly.c index 029227fa0..35c9e546b 100644 --- a/src/transport/test_transport_startonly.c +++ b/src/transport/test_transport_startonly.c @@ -120,14 +120,14 @@ run (void *cls, char *const *args, const char *cfgfile, const struct GNUNET_CONFIGURATION_Handle *cfg) { timeout_task = - GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_MINUTES, &end_badly, NULL); + GNUNET_SCHEDULER_add_delayed (TIMEOUT, &end_badly, NULL); i = 1; fprintf(stderr,"%i",i); while (i <= ITERATIONS) { GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Starting peer\n"); - p1 = GNUNET_TRANSPORT_TESTING_start_peer ("test_transport_api_tcp_peer1.conf", + p1 = GNUNET_TRANSPORT_TESTING_start_peer ("test_transport_startonly.conf", ¬ify_receive, ¬ify_connect, ¬ify_disconnect, p1); @@ -140,10 +140,13 @@ run (void *cls, char *const *args, const char *cfgfile, GNUNET_assert (p1 != NULL); GNUNET_assert (p1->th != NULL); + //sleep (5); + GNUNET_TRANSPORT_TESTING_stop_peer(p1); i++; - fprintf(stderr,"..%i",i); + if (i <= ITERATIONS) + fprintf(stderr,"..%i",i); } fprintf(stderr,"\n"); end(); diff --git a/src/transport/test_transport_startonly.conf b/src/transport/test_transport_startonly.conf new file mode 100644 index 000000000..255df4c44 --- /dev/null +++ b/src/transport/test_transport_startonly.conf @@ -0,0 +1,15 @@ +@INLINE@ test_transport_defaults.conf +[PATHS] +DEFAULTCONFIG = test_transport_api_data.conf + +[arm] +DEFAULTSERVICES = transport + +[transport-tcp] +PORT = 2094 + +[transport-udp] +PORT = 2094 + + + -- 2.25.1