aboutsummaryrefslogtreecommitdiff
path: root/src/datastore/test_datastore_api.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-08-06 06:47:45 +0000
committerChristian Grothoff <christian@grothoff.org>2010-08-06 06:47:45 +0000
commit67e65b83aac53ff0bf5f679b70ac80593f838a54 (patch)
treece3851974f0351fdf49ff0fa0e3c469727dcbb2b /src/datastore/test_datastore_api.c
parentc59802b4a2aa41f3293121742eaacd8df295302c (diff)
downloadgnunet-67e65b83aac53ff0bf5f679b70ac80593f838a54.tar.gz
gnunet-67e65b83aac53ff0bf5f679b70ac80593f838a54.zip
bugfixes
Diffstat (limited to 'src/datastore/test_datastore_api.c')
-rw-r--r--src/datastore/test_datastore_api.c16
1 files changed, 13 insertions, 3 deletions
diff --git a/src/datastore/test_datastore_api.c b/src/datastore/test_datastore_api.c
index 1a753d2bf..2ae6dbe4a 100644
--- a/src/datastore/test_datastore_api.c
+++ b/src/datastore/test_datastore_api.c
@@ -33,7 +33,7 @@
33 33
34#define VERBOSE GNUNET_NO 34#define VERBOSE GNUNET_NO
35 35
36#define START_DATASTORE GNUNET_NO 36#define START_DATASTORE GNUNET_YES
37 37
38/** 38/**
39 * How long until we give up on transmitting the message? 39 * How long until we give up on transmitting the message?
@@ -299,6 +299,9 @@ check_multiple (void *cls,
299 { 299 {
300 if (crc->phase != RP_GET_MULTIPLE_DONE) 300 if (crc->phase != RP_GET_MULTIPLE_DONE)
301 { 301 {
302 fprintf (stderr,
303 "Wrong phase: %d\n",
304 crc->phase);
302 GNUNET_break (0); 305 GNUNET_break (0);
303 crc->phase = RP_ERROR; 306 crc->phase = RP_ERROR;
304 } 307 }
@@ -352,8 +355,15 @@ check_update (void *cls,
352 355
353 if (key == NULL) 356 if (key == NULL)
354 { 357 {
355 GNUNET_assert (crc->phase == RP_UPDATE_DONE); 358 if (crc->phase != RP_UPDATE_DONE)
356 crc->phase = RP_DONE; 359 {
360 GNUNET_break (0);
361 crc->phase = RP_ERROR;
362 }
363 else
364 {
365 crc->phase = RP_DONE;
366 }
357 GNUNET_SCHEDULER_add_continuation (crc->sched, 367 GNUNET_SCHEDULER_add_continuation (crc->sched,
358 &run_continuation, 368 &run_continuation,
359 crc, 369 crc,