From 64fda07e9148e7980d950472250ef074e2e8a12b Mon Sep 17 00:00:00 2001 From: Teemu Ollakka Date: Fri, 13 Sep 2019 12:48:21 +0300 Subject: [PATCH] Fixed NBO unit tests. --- include/wsrep/client_state.hpp | 2 +- test/nbo_test.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/wsrep/client_state.hpp b/include/wsrep/client_state.hpp index 6b00a7c..119b974 100644 --- a/include/wsrep/client_state.hpp +++ b/include/wsrep/client_state.hpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018 Codership Oy + * Copyright (C) 2018-2019 Codership Oy * * This file is part of wsrep-lib. * diff --git a/test/nbo_test.cpp b/test/nbo_test.cpp index a297cc3..238a4da 100644 --- a/test/nbo_test.cpp +++ b/test/nbo_test.cpp @@ -50,7 +50,7 @@ BOOST_FIXTURE_TEST_CASE(test_local_nbo, BOOST_REQUIRE(cc.toi_mode() == wsrep::client_state::m_undefined); // Second phase replicates the NBO end event and grabs TOI // again for finalizing the NBO. - BOOST_REQUIRE(cc.begin_nbo_phase_two() == 0); + BOOST_REQUIRE(cc.begin_nbo_phase_two(keys) == 0); BOOST_REQUIRE(cc.mode() == wsrep::client_state::m_nbo); BOOST_REQUIRE(cc.in_toi()); BOOST_REQUIRE(cc.toi_mode() == wsrep::client_state::m_local); @@ -126,7 +126,7 @@ BOOST_FIXTURE_TEST_CASE(test_applying_nbo, key.append_key_part("k2", 2); wsrep::key_array keys{key}; // Starting phase two should put nbo_cs in toi mode. - BOOST_REQUIRE(nbo_cs->begin_nbo_phase_two() == 0); + BOOST_REQUIRE(nbo_cs->begin_nbo_phase_two(keys) == 0); BOOST_REQUIRE(nbo_cs->mode() == wsrep::client_state::m_nbo); BOOST_REQUIRE(nbo_cs->in_toi()); BOOST_REQUIRE(nbo_cs->toi_mode() == wsrep::client_state::m_local);