diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-01-25 16:41:18 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-01-25 16:41:18 +0000 |
commit | c6c5352edfdaeed1321a73635e6ac201cbb21f98 (patch) | |
tree | 5f765bcc4421e8a6dd186ec6ce856769f893cae7 | |
parent | f05d099e46691bd5e9c477bc4f2a20c1226fed5b (diff) | |
download | gnunet-c6c5352edfdaeed1321a73635e6ac201cbb21f98.tar.gz gnunet-c6c5352edfdaeed1321a73635e6ac201cbb21f98.zip |
-fix testcase assertions
-rw-r--r-- | src/ats/test_ats_solver_request_and_delete_address.c | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/src/ats/test_ats_solver_request_and_delete_address.c b/src/ats/test_ats_solver_request_and_delete_address.c index bca340ac1..037d26971 100644 --- a/src/ats/test_ats_solver_request_and_delete_address.c +++ b/src/ats/test_ats_solver_request_and_delete_address.c | |||
@@ -1,10 +1,4 @@ | |||
1 | /* | 1 | /* |
2 | if (NULL == (perf_ats = GNUNET_ATS_performance_init (cfg, &ats_perf_cb, NULL))) | ||
3 | { | ||
4 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | ||
5 | "Failed to connect to performance API\n"); | ||
6 | GNUNET_SCHEDULER_add_now (end_badly, NULL); | ||
7 | } | ||
8 | This file is part of GNUnet. | 2 | This file is part of GNUnet. |
9 | (C) 2010-2013 Christian Grothoff (and other contributing authors) | 3 | (C) 2010-2013 Christian Grothoff (and other contributing authors) |
10 | 4 | ||
@@ -24,7 +18,7 @@ | |||
24 | Boston, MA 02111-1307, USA. | 18 | Boston, MA 02111-1307, USA. |
25 | */ | 19 | */ |
26 | /** | 20 | /** |
27 | * @file ats/test_ats_solver_add_address.c | 21 | * @file ats/test_ats_solver_request_and_delete_address.c |
28 | * @brief solver test: add address, request address, delete address and wait for disconnect | 22 | * @brief solver test: add address, request address, delete address and wait for disconnect |
29 | * @author Christian Grothoff | 23 | * @author Christian Grothoff |
30 | * @author Matthias Wachs | 24 | * @author Matthias Wachs |
@@ -180,18 +174,19 @@ address_suggest_cb (void *cls, | |||
180 | 174 | ||
181 | 175 | ||
182 | static int | 176 | static int |
183 | stat_cb(void *cls, const char *subsystem, | 177 | stat_cb (void *cls, const char *subsystem, |
184 | const char *name, uint64_t value, | 178 | const char *name, uint64_t value, |
185 | int is_persistent) | 179 | int is_persistent) |
186 | { | 180 | { |
181 | static struct GNUNET_ATS_SuggestHandle *sh; | ||
187 | 182 | ||
188 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, | 183 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, |
189 | "ATS statistics: `%s' `%s' %llu\n", | 184 | "ATS statistics: `%s' `%s' %llu\n", |
190 | subsystem, | 185 | subsystem, |
191 | name, | 186 | name, |
192 | value); | 187 | value); |
193 | if (GNUNET_NO == address_deleted) | 188 | if (NULL == sh) |
194 | GNUNET_ATS_suggest_address (sched_ats, &p.id); | 189 | sh = GNUNET_ATS_suggest_address (sched_ats, &p.id); |
195 | return GNUNET_OK; | 190 | return GNUNET_OK; |
196 | } | 191 | } |
197 | 192 | ||