1
0
mirror of https://github.com/codership/wsrep-lib.git synced 2025-07-22 23:21:53 +03:00

Added test case for desync-pause-resume-resync.

This commit is contained in:
Teemu Ollakka
2018-12-19 15:28:09 +02:00
parent 728eaa80b5
commit 76335a3042

View File

@ -513,3 +513,19 @@ BOOST_FIXTURE_TEST_CASE(
ss.on_sync(); ss.on_sync();
BOOST_REQUIRE(ss.state() == wsrep::server_state::s_synced); BOOST_REQUIRE(ss.state() == wsrep::server_state::s_synced);
} }
/////////////////////////////////////////////////////////////////////////////
// Pause/Resume and Desync/Resync //
/////////////////////////////////////////////////////////////////////////////
BOOST_FIXTURE_TEST_CASE(
server_state_sst_first_desync_and_pause_resync_and_resume,
sst_first_server_fixture)
{
bootstrap();
ss.desync_and_pause();
// @todo: Should we have here different state than synced
BOOST_REQUIRE(ss.state() == wsrep::server_state::s_synced);
ss.resume_and_resync();
BOOST_REQUIRE(ss.state() == wsrep::server_state::s_synced);
}