aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/namestore/test_namestore_api_remove_not_existing_record.c18
-rw-r--r--src/namestore/test_namestore_api_zone_iteration.c1
2 files changed, 6 insertions, 13 deletions
diff --git a/src/namestore/test_namestore_api_remove_not_existing_record.c b/src/namestore/test_namestore_api_remove_not_existing_record.c
index 0e7cc6b33..362a18082 100644
--- a/src/namestore/test_namestore_api_remove_not_existing_record.c
+++ b/src/namestore/test_namestore_api_remove_not_existing_record.c
@@ -108,17 +108,6 @@ put_cont (void *cls, int32_t success, const char *emsg)
108 } 108 }
109 else if (GNUNET_OK == success) 109 else if (GNUNET_OK == success)
110 { 110 {
111 GNUNET_break (0);
112 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
113 "Namestore did remove not exisiting record: `%s'\n",
114 emsg);
115 GNUNET_SCHEDULER_shutdown ();
116 return;
117 }
118 else
119 {
120 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
121 "Name was not removed\n");
122 res = 0; 111 res = 0;
123 if (endbadly_task != GNUNET_SCHEDULER_NO_TASK) 112 if (endbadly_task != GNUNET_SCHEDULER_NO_TASK)
124 { 113 {
@@ -144,7 +133,9 @@ run (void *cls,
144 "zonefiles%s%s", 133 "zonefiles%s%s",
145 DIR_SEPARATOR_STR, 134 DIR_SEPARATOR_STR,
146 "N0UJMP015AFUNR2BTNM3FKPBLG38913BL8IDMCO2H0A1LIB81960.zkey"); 135 "N0UJMP015AFUNR2BTNM3FKPBLG38913BL8IDMCO2H0A1LIB81960.zkey");
147 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Using zonekey file `%s' \n", hostkey_file); 136 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
137 "Using zonekey file `%s' \n",
138 hostkey_file);
148 privkey = GNUNET_CRYPTO_ecdsa_key_create_from_file (hostkey_file); 139 privkey = GNUNET_CRYPTO_ecdsa_key_create_from_file (hostkey_file);
149 GNUNET_free (hostkey_file); 140 GNUNET_free (hostkey_file);
150 GNUNET_assert (privkey != NULL); 141 GNUNET_assert (privkey != NULL);
@@ -153,7 +144,8 @@ run (void *cls,
153 nsh = GNUNET_NAMESTORE_connect (cfg); 144 nsh = GNUNET_NAMESTORE_connect (cfg);
154 GNUNET_break (NULL != nsh); 145 GNUNET_break (NULL != nsh);
155 nsqe = GNUNET_NAMESTORE_records_store (nsh, privkey, name, 146 nsqe = GNUNET_NAMESTORE_records_store (nsh, privkey, name,
156 0, NULL, &put_cont, (void *) name); 147 0, NULL,
148 &put_cont, (void *) name);
157 if (NULL == nsqe) 149 if (NULL == nsqe)
158 { 150 {
159 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, 151 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
diff --git a/src/namestore/test_namestore_api_zone_iteration.c b/src/namestore/test_namestore_api_zone_iteration.c
index cfeceabe0..7ff21a39d 100644
--- a/src/namestore/test_namestore_api_zone_iteration.c
+++ b/src/namestore/test_namestore_api_zone_iteration.c
@@ -440,6 +440,7 @@ int
440main (int argc, char *argv[]) 440main (int argc, char *argv[])
441{ 441{
442 res = 1; 442 res = 1;
443 GNUNET_DISK_directory_remove ("/tmp/test-gnunet-namestore");
443 if (0 != 444 if (0 !=
444 GNUNET_TESTING_peer_run ("test-namestore-api-zone-iteration", 445 GNUNET_TESTING_peer_run ("test-namestore-api-zone-iteration",
445 "test_namestore_api.conf", 446 "test_namestore_api.conf",