Fix test: Status must be INSTRUCTION_EVAL.

This test runs on an empty database. That also means that there is no
ID in the database which is needed to detect the update. An empty
ID means that the status must be evaluated.
This commit is contained in:
Klaas Freitag 2012-09-24 16:47:43 +03:00
parent 407b87c17b
commit 4eb1ae7853

View file

@ -153,7 +153,7 @@ START_TEST (check_csync_detect_update_db_none)
/* the instruction should be set to new */
st = c_rbtree_node_data(csync->local.tree->root);
fail_unless(st->instruction == CSYNC_INSTRUCTION_NONE, "instruction is %s", csync_instruction_str(st->instruction));
fail_unless(st->instruction == CSYNC_INSTRUCTION_EVAL, "instruction is %s", csync_instruction_str(st->instruction));
/* set the instruction to UPDATED that it gets written to the statedb */
st->instruction = CSYNC_INSTRUCTION_UPDATED;