[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r37963 - gnunet/src/transport
From: |
gnunet |
Subject: |
[GNUnet-SVN] r37963 - gnunet/src/transport |
Date: |
Tue, 20 Sep 2016 22:27:36 +0200 |
Author: grothoff
Date: 2016-09-20 22:27:36 +0200 (Tue, 20 Sep 2016)
New Revision: 37963
Modified:
gnunet/src/transport/test_transport_api_manipulation_recv_tcp.c
Log:
-make test more robust
Modified: gnunet/src/transport/test_transport_api_manipulation_recv_tcp.c
===================================================================
--- gnunet/src/transport/test_transport_api_manipulation_recv_tcp.c
2016-09-20 19:53:24 UTC (rev 37962)
+++ gnunet/src/transport/test_transport_api_manipulation_recv_tcp.c
2016-09-20 20:27:36 UTC (rev 37963)
@@ -87,7 +87,9 @@
}
if (0 < messages_recv)
{
- memset (&prop, 0, sizeof (prop));
+ memset (&prop,
+ 0,
+ sizeof (prop));
delay = GNUNET_TIME_UNIT_SECONDS;
GNUNET_TRANSPORT_manipulation_set (ccc->p[1]->tmh,
&ccc->p[0]->id,
@@ -95,10 +97,13 @@
delay,
GNUNET_TIME_UNIT_ZERO);
/* wait 1s to allow manipulation to go into effect */
- GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_SECONDS,
- &delayed_transmit,
- sc);
- return;
+ if (1 == messages_recv)
+ {
+ GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_SECONDS,
+ &delayed_transmit,
+ sc);
+ return;
+ }
}
GNUNET_TRANSPORT_TESTING_large_send (sc);
}
@@ -131,7 +136,7 @@
return;
}
- if (messages_recv <= 1)
+ if (messages_recv <= 2)
{
/* Received non-delayed message */
dur_normal = GNUNET_TIME_absolute_get_duration (start_normal);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r37963 - gnunet/src/transport,
gnunet <=