diff options
Diffstat (limited to 'src/datastore/test_datastore_api.c')
-rw-r--r-- | src/datastore/test_datastore_api.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/datastore/test_datastore_api.c b/src/datastore/test_datastore_api.c index ce3c18daa..b4f4f07da 100644 --- a/src/datastore/test_datastore_api.c +++ b/src/datastore/test_datastore_api.c | |||
@@ -291,8 +291,15 @@ check_multiple (void *cls, | |||
291 | 291 | ||
292 | if (key == NULL) | 292 | if (key == NULL) |
293 | { | 293 | { |
294 | GNUNET_assert (crc->phase == RP_GET_MULTIPLE_DONE); | 294 | if (crc->phase != RP_GET_MULTIPLE_DONE) |
295 | crc->phase = RP_UPDATE; | 295 | { |
296 | GNUNET_break (0); | ||
297 | crc->phase = RP_ERROR; | ||
298 | } | ||
299 | else | ||
300 | { | ||
301 | crc->phase = RP_UPDATE; | ||
302 | } | ||
296 | GNUNET_SCHEDULER_add_continuation (crc->sched, | 303 | GNUNET_SCHEDULER_add_continuation (crc->sched, |
297 | &run_continuation, | 304 | &run_continuation, |
298 | crc, | 305 | crc, |