gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r26186 - gnunet/src/ats


From: gnunet
Subject: [GNUnet-SVN] r26186 - gnunet/src/ats
Date: Fri, 22 Feb 2013 09:47:39 +0100

Author: wachs
Date: 2013-02-22 09:47:39 +0100 (Fri, 22 Feb 2013)
New Revision: 26186

Modified:
   gnunet/src/ats/test_ats_api_common.c
   gnunet/src/ats/test_ats_api_common.h
   gnunet/src/ats/test_ats_simplistic_pref_aging.c
Log:
 fix test


Modified: gnunet/src/ats/test_ats_api_common.c
===================================================================
--- gnunet/src/ats/test_ats_api_common.c        2013-02-21 22:02:57 UTC (rev 
26185)
+++ gnunet/src/ats/test_ats_api_common.c        2013-02-22 08:47:39 UTC (rev 
26186)
@@ -25,14 +25,9 @@
  */
 
 #include "test_ats_api_common.h"
-
-#define TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 30)
 #define BIG_M_STRING "unlimited"
 
 
-#define PEERID0 
"2AK99KD8RM9UA9LC3QKA0IQ5UBFC0FBB50EBGCFQT8448DGGACNAC4CJQDD1CPFS494O41U88DJD1FLIG8VA5CQR9IN4L96GP104MVO"
-#define PEERID1 
"5ED7I0AR3MSTAL7FQN04S22E0EQ3CR9RLASCDLVMM1BNFPUPTCT46DLKNJ4DACASJ6U0DR5J8S3R2UJL49682JS7MOVRAB8P8A4PJH0"
-
 void
 create_test_address (struct Test_Address *dest, char * plugin, void *session, 
void *addr, size_t addrlen)
 {

Modified: gnunet/src/ats/test_ats_api_common.h
===================================================================
--- gnunet/src/ats/test_ats_api_common.h        2013-02-21 22:02:57 UTC (rev 
26185)
+++ gnunet/src/ats/test_ats_api_common.h        2013-02-22 08:47:39 UTC (rev 
26186)
@@ -29,7 +29,7 @@
 #include "gnunet_ats_service.h"
 #include "gnunet-service-ats_addresses.h"
 
-#define TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 10)
+#define TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 30)
 
 #define PEERID0 
"2AK99KD8RM9UA9LC3QKA0IQ5UBFC0FBB50EBGCFQT8448DGGACNAC4CJQDD1CPFS494O41U88DJD1FLIG8VA5CQR9IN4L96GP104MVO"
 #define PEERID1 
"5ED7I0AR3MSTAL7FQN04S22E0EQ3CR9RLASCDLVMM1BNFPUPTCT46DLKNJ4DACASJ6U0DR5J8S3R2UJL49682JS7MOVRAB8P8A4PJH0"

Modified: gnunet/src/ats/test_ats_simplistic_pref_aging.c
===================================================================
--- gnunet/src/ats/test_ats_simplistic_pref_aging.c     2013-02-21 22:02:57 UTC 
(rev 26185)
+++ gnunet/src/ats/test_ats_simplistic_pref_aging.c     2013-02-22 08:47:39 UTC 
(rev 26186)
@@ -103,7 +103,7 @@
 end_badly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
 {
   die_task = GNUNET_SCHEDULER_NO_TASK;
-
+  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Error! Shutting down\n");
   if (sched_ats != NULL)
   {
     GNUNET_ATS_scheduling_done (sched_ats);
@@ -297,6 +297,7 @@
                if ((GNUNET_YES == sug_p0) && (GNUNET_YES == sug_p1))
                {
                        /* Done ! */
+                       GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Done!\n");
                        stage ++;
                        ret = 0;
         GNUNET_SCHEDULER_add_now (&end,NULL);
@@ -308,6 +309,7 @@
 error:
        /* Error ! */
        ret = 1;
+       GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Error!\n");
        GNUNET_SCHEDULER_add_now (&end,NULL);
 }
 




reply via email to

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