aboutsummaryrefslogtreecommitdiff
path: root/src/ats
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-03-15 00:07:34 +0000
committerChristian Grothoff <christian@grothoff.org>2015-03-15 00:07:34 +0000
commit11e5450e4eae44a68a20e664f912f4fb337d2666 (patch)
tree9b68b637838380763bcd7b5a04e9c2bf293c6afc /src/ats
parentbbbfad644215b4f39a06b099cc31bebc2aa334fb (diff)
downloadgnunet-11e5450e4eae44a68a20e664f912f4fb337d2666.tar.gz
gnunet-11e5450e4eae44a68a20e664f912f4fb337d2666.zip
try to fix timing issue in ATS test library
Diffstat (limited to 'src/ats')
-rw-r--r--src/ats/test_ats_lib.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/ats/test_ats_lib.c b/src/ats/test_ats_lib.c
index 590696ab2..5ebb28cd8 100644
--- a/src/ats/test_ats_lib.c
+++ b/src/ats/test_ats_lib.c
@@ -166,7 +166,7 @@ free_asd (void *cls,
166 GNUNET_CONTAINER_multipeermap_remove (p2asd, 166 GNUNET_CONTAINER_multipeermap_remove (p2asd,
167 key, 167 key,
168 asd)); 168 asd));
169 GNUNET_free (asd->address); 169 GNUNET_free_non_null (asd->address);
170 GNUNET_free (asd); 170 GNUNET_free (asd);
171 return GNUNET_OK; 171 return GNUNET_OK;
172} 172}
@@ -553,8 +553,9 @@ reservation_cb (void *cls,
553 if (amount != cmd->details.reserve_bandwidth.amount) 553 if (amount != cmd->details.reserve_bandwidth.amount)
554 { 554 {
555 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, 555 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
556 "Unexpectedly failed to reserve %d bytes with delay %s!\n", 556 "Unexpectedly failed to reserve %d/%d bytes with delay %s!\n",
557 (int) amount, 557 (int) amount,
558 (int) cmd->details.reserve_bandwidth.amount,
558 GNUNET_STRINGS_relative_time_to_string (res_delay, 559 GNUNET_STRINGS_relative_time_to_string (res_delay,
559 GNUNET_YES)); 560 GNUNET_YES));
560 GNUNET_break (0); 561 GNUNET_break (0);
@@ -935,7 +936,8 @@ address_suggest_cb (void *cls,
935 asd->address = NULL; 936 asd->address = NULL;
936 if (NULL != address) 937 if (NULL != address)
937 asd->address = GNUNET_HELLO_address_copy (address); 938 asd->address = GNUNET_HELLO_address_copy (address);
938 run_interpreter (); 939 if (NULL == interpreter_task)
940 run_interpreter ();
939} 941}
940 942
941 943