aboutsummaryrefslogtreecommitdiff
path: root/src/transport/test_transport_startonly.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2011-08-25 09:10:11 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2011-08-25 09:10:11 +0000
commite0d1527b589a41c03887754ae8e9abedf1716d45 (patch)
tree533d2470e301bd57c9ff45de8312d7448cef5957 /src/transport/test_transport_startonly.c
parent9f4aca7e4626ae62a46b19ac7b44b1bc6884f5be (diff)
downloadgnunet-e0d1527b589a41c03887754ae8e9abedf1716d45.tar.gz
gnunet-e0d1527b589a41c03887754ae8e9abedf1716d45.zip
minor changes
Diffstat (limited to 'src/transport/test_transport_startonly.c')
-rw-r--r--src/transport/test_transport_startonly.c9
1 files changed, 6 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();