diff options
author | Martin Schanzenbach <schanzen@gnunet.org> | 2022-12-06 13:52:01 +0900 |
---|---|---|
committer | Martin Schanzenbach <schanzen@gnunet.org> | 2022-12-06 13:52:01 +0900 |
commit | 69e6c0b893b0b642f969ac8a134d043a51e393a3 (patch) | |
tree | 80c00ce5b69f9eb8728fb8dda39abac953412574 /src/namestore | |
parent | 5abbc294229cca582d0b104b86be534de2be66ea (diff) | |
download | gnunet-69e6c0b893b0b642f969ac8a134d043a51e393a3.tar.gz gnunet-69e6c0b893b0b642f969ac8a134d043a51e393a3.zip |
-fix more test issues
Diffstat (limited to 'src/namestore')
-rw-r--r-- | src/namestore/test_namestore_api_edit_records.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/namestore/test_namestore_api_edit_records.c b/src/namestore/test_namestore_api_edit_records.c index ee05f498a..fb588f0e1 100644 --- a/src/namestore/test_namestore_api_edit_records.c +++ b/src/namestore/test_namestore_api_edit_records.c | |||
@@ -24,7 +24,6 @@ | |||
24 | #include "platform.h" | 24 | #include "platform.h" |
25 | #include "gnunet_namestore_service.h" | 25 | #include "gnunet_namestore_service.h" |
26 | #include "gnunet_testing_lib.h" | 26 | #include "gnunet_testing_lib.h" |
27 | #include "gnunet_dnsparser_lib.h" | ||
28 | 27 | ||
29 | #define TEST_RECORD_TYPE GNUNET_DNSPARSER_TYPE_TXT | 28 | #define TEST_RECORD_TYPE GNUNET_DNSPARSER_TYPE_TXT |
30 | 29 | ||
@@ -187,7 +186,7 @@ commit_cont_a (void *cls, | |||
187 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 186 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
188 | "Name store added record for `%s': %s\n", | 187 | "Name store added record for `%s': %s\n", |
189 | name, | 188 | name, |
190 | (success == GNUNET_OK) ? "SUCCESS" : "FAIL"); | 189 | (GNUNET_EC_NONE == ec) ? "SUCCESS" : "FAIL"); |
191 | /** | 190 | /** |
192 | * Try again for B | 191 | * Try again for B |
193 | */ | 192 | */ |
@@ -263,7 +262,7 @@ begin_cont (void *cls, | |||
263 | { | 262 | { |
264 | const char *name = cls; | 263 | const char *name = cls; |
265 | 264 | ||
266 | GNUNET_assert (success == GNUNET_YES); | 265 | GNUNET_assert (GNUNET_EC_NONE == ec); |
267 | nsqe = GNUNET_NAMESTORE_records_edit (nsh, | 266 | nsqe = GNUNET_NAMESTORE_records_edit (nsh, |
268 | &privkey, | 267 | &privkey, |
269 | name, | 268 | name, |
@@ -288,7 +287,7 @@ preload_cont (void *cls, | |||
288 | GNUNET_break (0); | 287 | GNUNET_break (0); |
289 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | 288 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, |
290 | "Namestore could not store record: `%s'\n", | 289 | "Namestore could not store record: `%s'\n", |
291 | GNUNET_ErroCode_get_hint (ec)); | 290 | GNUNET_ErrorCode_get_hint (ec)); |
292 | if (endbadly_task != NULL) | 291 | if (endbadly_task != NULL) |
293 | GNUNET_SCHEDULER_cancel (endbadly_task); | 292 | GNUNET_SCHEDULER_cancel (endbadly_task); |
294 | endbadly_task = GNUNET_SCHEDULER_add_now (&endbadly, NULL); | 293 | endbadly_task = GNUNET_SCHEDULER_add_now (&endbadly, NULL); |
@@ -298,7 +297,7 @@ preload_cont (void *cls, | |||
298 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 297 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
299 | "Name store added record for `%s': %s\n", | 298 | "Name store added record for `%s': %s\n", |
300 | name, | 299 | name, |
301 | (success == GNUNET_OK) ? "SUCCESS" : "FAIL"); | 300 | (GNUNET_EC_NONE == ec) ? "SUCCESS" : "FAIL"); |
302 | /* We start transaction for A */ | 301 | /* We start transaction for A */ |
303 | nsqe = GNUNET_NAMESTORE_transaction_begin (nsh, begin_cont, (void *) name); | 302 | nsqe = GNUNET_NAMESTORE_transaction_begin (nsh, begin_cont, (void *) name); |
304 | 303 | ||