diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/transport/test_transport_api_unreliability.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/transport/test_transport_api_unreliability.c b/src/transport/test_transport_api_unreliability.c index a305e969f..2336b2bf9 100644 --- a/src/transport/test_transport_api_unreliability.c +++ b/src/transport/test_transport_api_unreliability.c | |||
@@ -191,7 +191,7 @@ end_badly () | |||
191 | 191 | ||
192 | if (test_sending == GNUNET_NO) | 192 | if (test_sending == GNUNET_NO) |
193 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | 193 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, |
194 | "Testcase did not send all messages / timeout\n"); | 194 | "Testcase did not send any messages before timeout\n"); |
195 | else | 195 | else |
196 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | 196 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, |
197 | "Reliability failed: Last message sent %u, Next message scheduled %u, Last message received %u, Message expected %u\n", | 197 | "Reliability failed: Last message sent %u, Next message scheduled %u, Last message received %u, Message expected %u\n", |
@@ -332,12 +332,12 @@ notify_receive (void *cls, const struct GNUNET_PeerIdentity *peer, | |||
332 | #endif | 332 | #endif |
333 | n++; | 333 | n++; |
334 | set_bit (ntohl (hdr->num)); | 334 | set_bit (ntohl (hdr->num)); |
335 | test_sending = GNUNET_YES; | ||
335 | if (0 == (n % (TOTAL_MSGS / 100))) | 336 | if (0 == (n % (TOTAL_MSGS / 100))) |
336 | { | 337 | { |
337 | fprintf (stderr, "."); | 338 | fprintf (stderr, "."); |
338 | if (GNUNET_SCHEDULER_NO_TASK != die_task) | 339 | if (GNUNET_SCHEDULER_NO_TASK != die_task) |
339 | GNUNET_SCHEDULER_cancel (die_task); | 340 | GNUNET_SCHEDULER_cancel (die_task); |
340 | test_sending = GNUNET_YES; | ||
341 | die_task = GNUNET_SCHEDULER_add_delayed (TIMEOUT, &end_badly, NULL); | 341 | die_task = GNUNET_SCHEDULER_add_delayed (TIMEOUT, &end_badly, NULL); |
342 | } | 342 | } |
343 | if (n == TOTAL_MSGS) | 343 | if (n == TOTAL_MSGS) |