diff options
Diffstat (limited to 'src/namestore/test_namestore_api_remove_not_existing_record.c')
-rw-r--r-- | src/namestore/test_namestore_api_remove_not_existing_record.c | 5 |
1 files changed, 3 insertions, 2 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 d35d867c5..d1a664b17 100644 --- a/src/namestore/test_namestore_api_remove_not_existing_record.c +++ b/src/namestore/test_namestore_api_remove_not_existing_record.c | |||
@@ -105,19 +105,20 @@ put_cont (void *cls, int32_t success, const char *emsg) | |||
105 | 105 | ||
106 | switch (success) { | 106 | switch (success) { |
107 | case GNUNET_NO: | 107 | case GNUNET_NO: |
108 | /* We expected GNUNET_NO, since record was not found */ | ||
108 | GNUNET_SCHEDULER_add_now (&end, NULL); | 109 | GNUNET_SCHEDULER_add_now (&end, NULL); |
109 | break; | 110 | break; |
110 | case GNUNET_OK: | 111 | case GNUNET_OK: |
111 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | 112 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, |
112 | "Namestore could remove non-existing record: `%s'\n", | 113 | "Namestore could remove non-existing record: `%s'\n", |
113 | emsg); | 114 | (NULL !=emsg) ? emsg : ""); |
114 | GNUNET_SCHEDULER_add_now (&endbadly, NULL); | 115 | GNUNET_SCHEDULER_add_now (&endbadly, NULL); |
115 | break; | 116 | break; |
116 | case GNUNET_SYSERR: | 117 | case GNUNET_SYSERR: |
117 | default: | 118 | default: |
118 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | 119 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, |
119 | "Namestore failed: `%s'\n", | 120 | "Namestore failed: `%s'\n", |
120 | emsg); | 121 | (NULL !=emsg) ? emsg : ""); |
121 | GNUNET_SCHEDULER_add_now (&endbadly, NULL); | 122 | GNUNET_SCHEDULER_add_now (&endbadly, NULL); |
122 | break; | 123 | break; |
123 | } | 124 | } |