diff options
Diffstat (limited to 'src/datastore/test_datastore_api_management.c')
-rw-r--r-- | src/datastore/test_datastore_api_management.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/datastore/test_datastore_api_management.c b/src/datastore/test_datastore_api_management.c index 54289dd7b..22d4aff25 100644 --- a/src/datastore/test_datastore_api_management.c +++ b/src/datastore/test_datastore_api_management.c | |||
@@ -202,11 +202,10 @@ check_nothing (void *cls, | |||
202 | expiration, uint64_t uid) | 202 | expiration, uint64_t uid) |
203 | { | 203 | { |
204 | struct CpsRunContext *crc = cls; | 204 | struct CpsRunContext *crc = cls; |
205 | |||
205 | GNUNET_assert (key == NULL); | 206 | GNUNET_assert (key == NULL); |
206 | if (crc->i == 0) | 207 | if (0 == --crc->i) |
207 | { | 208 | crc->phase = RP_DONE; |
208 | crc->phase = RP_DONE; | ||
209 | } | ||
210 | GNUNET_SCHEDULER_add_continuation (crc->sched, | 209 | GNUNET_SCHEDULER_add_continuation (crc->sched, |
211 | GNUNET_NO, | 210 | GNUNET_NO, |
212 | &run_continuation, | 211 | &run_continuation, |
@@ -284,6 +283,7 @@ run_continuation (void *cls, | |||
284 | TIMEOUT); | 283 | TIMEOUT); |
285 | break; | 284 | break; |
286 | case RP_DONE: | 285 | case RP_DONE: |
286 | GNUNET_assert (0 == crc->i); | ||
287 | #if VERBOSE | 287 | #if VERBOSE |
288 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 288 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
289 | "Finished, disconnecting\n"); | 289 | "Finished, disconnecting\n"); |