gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r24477 - gnunet/src/mesh


From: gnunet
Subject: [GNUnet-SVN] r24477 - gnunet/src/mesh
Date: Tue, 23 Oct 2012 16:11:44 +0200

Author: bartpolot
Date: 2012-10-23 16:11:44 +0200 (Tue, 23 Oct 2012)
New Revision: 24477

Modified:
   gnunet/src/mesh/test_mesh_small.c
Log:
- correct expected result


Modified: gnunet/src/mesh/test_mesh_small.c
===================================================================
--- gnunet/src/mesh/test_mesh_small.c   2012-10-23 13:34:01 UTC (rev 24476)
+++ gnunet/src/mesh/test_mesh_small.c   2012-10-23 14:11:44 UTC (rev 24477)
@@ -478,6 +478,12 @@
   if (size < size_payload || NULL == buf)
   {
     GNUNET_break (0);
+    GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
+                "size %u, buf %p, data_sent %u, data_received %u\n",
+                size,
+                buf,
+                data_sent,
+                data_received);
     return 0;
   }
   msg->size = htons (size);
@@ -589,6 +595,7 @@
                                         GNUNET_TIME_UNIT_FOREVER_REL, sender,
                                                size_payload,
                                         &tmt_rdy, (void *) 1L);
+      return GNUNET_OK;
     }
     else
     {
@@ -1195,13 +1202,14 @@
    /* Each peer is supposed to generate the following callbacks:
     * 1 incoming tunnel (@dest)
     * 1 connected peer (@orig)
+    * 1 initial packet (@dest)
     * TOTAL_PACKETS received data packet (@dest)
     * 1 received data packet (@orig)
     * 1 received tunnel destroy (@dest)
     * _________________________________
     */
     GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "SPEED\n");
-    ok_goal = TOTAL_PACKETS + 4;
+    ok_goal = TOTAL_PACKETS + 5;
     if (strstr (argv[0], "_min") != NULL)
     {
       test = SPEED_MIN;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]