Fixing client shutdown.
This commit is contained in:
parent
8d6fe8fa3c
commit
929f28f687
2 changed files with 10 additions and 1 deletions
|
@ -2035,7 +2035,7 @@ void rai::client::stop ()
|
|||
{
|
||||
network.stop ();
|
||||
bootstrap.stop ();
|
||||
processor.stop ();
|
||||
service.stop ();
|
||||
}
|
||||
|
||||
void rai::processor::bootstrap (boost::asio::ip::tcp::endpoint const & endpoint_a, std::function <void ()> const & complete_action_a)
|
||||
|
|
|
@ -1,6 +1,15 @@
|
|||
#include <gtest/gtest.h>
|
||||
#include <rai/core/core.hpp>
|
||||
|
||||
TEST (client, stop)
|
||||
{
|
||||
rai::system system (24000, 1);
|
||||
system.clients [0]->stop ();
|
||||
system.processor.run ();
|
||||
system.service->run ();
|
||||
ASSERT_TRUE (true);
|
||||
}
|
||||
|
||||
TEST (client, block_store_path_failure)
|
||||
{
|
||||
rai::client_init init;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue