fix eligibility traces
[oweals/gnunet.git] / src / ats / test_ats_api_scheduling_add_session.c
index 6a54166cca824f229d458fdba4fe80cb3c1cd49d..c415b57e28acb0a0b134874c1a254e179577ca5c 100644 (file)
@@ -28,6 +28,7 @@
 #include "gnunet_testing_lib.h"
 #include "ats.h"
 #include "test_ats_api_common.h"
+
 /**
  * Timeout task
  */
@@ -162,7 +163,7 @@ address_suggest_cb (void *cls, const struct GNUNET_HELLO_Address *address,
 
 
 static void
-run (void *cls, 
+run (void *cls,
      const struct GNUNET_CONFIGURATION_Handle *cfg,
      struct GNUNET_TESTING_Peer *peer)
 {
@@ -181,14 +182,7 @@ run (void *cls,
   }
 
   /* Set up peer */
-  if (GNUNET_SYSERR == GNUNET_CRYPTO_hash_from_string(PEERID0, &p.id.hashPubKey))
-  {
-      GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Could not setup peer!\n");
-      GNUNET_SCHEDULER_add_now (&end_badly, NULL);
-      return;
-  }
-  GNUNET_assert (0 == strcmp (PEERID0, GNUNET_i2s_full (&p.id)));
-
+  memset (&p.id, '1', sizeof (p.id));
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Created peer `%s'\n",
               GNUNET_i2s_full(&p.id));