2018-01-19 20:39:18 +08:00
|
|
|
#include "gtest/gtest.h"
|
|
|
|
|
|
|
|
#include "config.hpp"
|
2018-10-05 18:37:23 +08:00
|
|
|
#include "database/distributed/distributed_graph_db.hpp"
|
2018-01-19 20:39:18 +08:00
|
|
|
|
|
|
|
TEST(DatabaseMaster, Instantiate) {
|
|
|
|
database::Config config;
|
|
|
|
config.master_endpoint = io::network::Endpoint("127.0.0.1", 0);
|
|
|
|
config.worker_id = 0;
|
|
|
|
database::Master master(config);
|
2018-09-27 21:07:46 +08:00
|
|
|
master.Shutdown();
|
|
|
|
EXPECT_TRUE(master.AwaitShutdown());
|
2018-01-19 20:39:18 +08:00
|
|
|
}
|