diff --git a/unit-tests/020_ext-verifier.txt b/unit-tests/020_ext-verifier.txt index 227a7c5..73fa442 100644 --- a/unit-tests/020_ext-verifier.txt +++ b/unit-tests/020_ext-verifier.txt @@ -1,54 +1,52 @@ # vim: ft=sh et : # # Testing whether the external verifier (before-acquire-handler) # is obeyed. ticket: name "tick1" - state ST_STABLE - last_ack_ballot 40 - new_ballot 50 - owner local - retries 6 - timeout 1 + state ST_LEADER + current_term 40 + leader local # may keep ticket all the time - expiry 3000 + term_duration 3000 # but shall start renewal now - expires time(0) + 1000 + term_expires time(0) + 1000 ext_verifier "test `set|grep ^BOOTH|wc -l` -ge 5" + hb_sent_at time(0) - 10 outgoing0: - header.cmd OP_PREPARING + header.cmd OP_HEARTBEAT ticket1: ext_verifier 'test "$BOOTH_TICKET" == "tick1"' # cause re-query of the verifier - state ST_STABLE + hb_sent_at time(0) - 10 # #gdb1: # break ticket_broadcast_proposed_state § commands § bt § c § end outgoing1: - header.cmd OP_PREPARING + header.cmd OP_HEARTBEAT # now say that we may not have it anymore. ticket2: ext_verifier 'test "$BOOTH_TICKET" == "tick2FOO"' # cause re-query of the verifier - state ST_STABLE + hb_sent_at time(0) - 10 # We just tell the others we don't have it anymore. outgoing2: - header.cmd OP_COMMITTED - ticket.owner -1 + header.cmd OP_REQ_VOTE + ticket.leader -1 finally: - state ST_STABLE - owner NULL + state ST_FOLLOWER + leader NULL