aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/transport/test_transport_startonly.c9
-rw-r--r--src/transport/test_transport_startonly.conf15
2 files changed, 21 insertions, 3 deletions
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,
120 const struct GNUNET_CONFIGURATION_Handle *cfg) 120 const struct GNUNET_CONFIGURATION_Handle *cfg)
121{ 121{
122 timeout_task = 122 timeout_task =
123 GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_MINUTES, &end_badly, NULL); 123 GNUNET_SCHEDULER_add_delayed (TIMEOUT, &end_badly, NULL);
124 124
125 i = 1; 125 i = 1;
126 fprintf(stderr,"%i",i); 126 fprintf(stderr,"%i",i);
127 while (i <= ITERATIONS) 127 while (i <= ITERATIONS)
128 { 128 {
129 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Starting peer\n"); 129 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Starting peer\n");
130 p1 = GNUNET_TRANSPORT_TESTING_start_peer ("test_transport_api_tcp_peer1.conf", 130 p1 = GNUNET_TRANSPORT_TESTING_start_peer ("test_transport_startonly.conf",
131 &notify_receive, &notify_connect, 131 &notify_receive, &notify_connect,
132 &notify_disconnect, p1); 132 &notify_disconnect, p1);
133 133
@@ -140,10 +140,13 @@ run (void *cls, char *const *args, const char *cfgfile,
140 GNUNET_assert (p1 != NULL); 140 GNUNET_assert (p1 != NULL);
141 GNUNET_assert (p1->th != NULL); 141 GNUNET_assert (p1->th != NULL);
142 142
143 //sleep (5);
144
143 GNUNET_TRANSPORT_TESTING_stop_peer(p1); 145 GNUNET_TRANSPORT_TESTING_stop_peer(p1);
144 146
145 i++; 147 i++;
146 fprintf(stderr,"..%i",i); 148 if (i <= ITERATIONS)
149 fprintf(stderr,"..%i",i);
147 } 150 }
148 fprintf(stderr,"\n"); 151 fprintf(stderr,"\n");
149 end(); 152 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 @@
1@INLINE@ test_transport_defaults.conf
2[PATHS]
3DEFAULTCONFIG = test_transport_api_data.conf
4
5[arm]
6DEFAULTSERVICES = transport
7
8[transport-tcp]
9PORT = 2094
10
11[transport-udp]
12PORT = 2094
13
14
15