aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/test_namestore_api_remove.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-06-30 19:50:45 +0000
committerChristian Grothoff <christian@grothoff.org>2013-06-30 19:50:45 +0000
commit1e3d1148397da31088450c0b126c665a5214044e (patch)
treef36d47275bc8357ad2321294822c3bc2f1af18aa /src/namestore/test_namestore_api_remove.c
parent5685f97e7161d23d750b0cbb7b4edb25d8cf6ab6 (diff)
downloadgnunet-1e3d1148397da31088450c0b126c665a5214044e.tar.gz
gnunet-1e3d1148397da31088450c0b126c665a5214044e.zip
-fixing some namestore tests
Diffstat (limited to 'src/namestore/test_namestore_api_remove.c')
-rw-r--r--src/namestore/test_namestore_api_remove.c17
1 files changed, 5 insertions, 12 deletions
diff --git a/src/namestore/test_namestore_api_remove.c b/src/namestore/test_namestore_api_remove.c
index 498b3a360..77edd3fa9 100644
--- a/src/namestore/test_namestore_api_remove.c
+++ b/src/namestore/test_namestore_api_remove.c
@@ -116,7 +116,6 @@ name_lookup_proc (void *cls,
116 const struct GNUNET_NAMESTORE_RecordData *rd, 116 const struct GNUNET_NAMESTORE_RecordData *rd,
117 const struct GNUNET_CRYPTO_EccSignature *signature) 117 const struct GNUNET_CRYPTO_EccSignature *signature)
118{ 118{
119 static int found = GNUNET_NO;
120 int failed = GNUNET_NO; 119 int failed = GNUNET_NO;
121 120
122 if (NULL != n) 121 if (NULL != n)
@@ -147,16 +146,7 @@ name_lookup_proc (void *cls,
147 else 146 else
148 res = 1; 147 res = 1;
149 } 148 }
150 else 149 GNUNET_SCHEDULER_add_now (&end, NULL);
151 {
152 if (found != GNUNET_YES)
153 {
154 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Failed to lookup records for name `%s'\n", s_name);
155 res = 1;
156 }
157 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Lookup done for name %s'\n", s_name);
158 }
159 GNUNET_SCHEDULER_add_now(&end, NULL);
160} 150}
161 151
162 152
@@ -164,7 +154,10 @@ static void
164remove_cont (void *cls, int32_t success, const char *emsg) 154remove_cont (void *cls, int32_t success, const char *emsg)
165{ 155{
166 char *name = cls; 156 char *name = cls;
167 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Remove record for `%s': %s\n", name, (success == GNUNET_YES) ? "SUCCESS" : "FAIL", emsg); 157
158 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
159 "Remove record for `%s': %s\n", name, (success == GNUNET_YES) ? "SUCCESS" : "FAIL",
160 emsg);
168 if (success == GNUNET_OK) 161 if (success == GNUNET_OK)
169 { 162 {
170 res = 0; 163 res = 0;