1
0
mirror of https://github.com/codership/wsrep-lib.git synced 2025-07-25 21:41:56 +03:00

More unit tests for various error conditions on certification.

This commit is contained in:
Teemu Ollakka
2018-06-11 18:17:00 +03:00
parent 82081e459d
commit f506faa360
9 changed files with 382 additions and 10 deletions

View File

@ -11,10 +11,16 @@
void wsrep_test::bf_abort_unordered(wsrep::client_context& cc)
{
wsrep::unique_lock<wsrep::mutex> lock(cc.mutex());
assert(cc.transaction().seqno().nil());
assert(cc.transaction().ordered() == false);
cc.bf_abort(lock, 1);
}
void wsrep_test::bf_abort_ordered(wsrep::client_context& cc)
{
wsrep::unique_lock<wsrep::mutex> lock(cc.mutex());
assert(cc.transaction().ordered());
cc.bf_abort(lock, 0);
}
// BF abort method to abort transactions via provider
void wsrep_test::bf_abort_provider(wsrep::mock_server_context& sc,
const wsrep::transaction_context& tc,