memgraph/tests/unit/database_master.cpp

14 lines
356 B
C++
Raw Normal View History

#include "gtest/gtest.h"
#include "config.hpp"
#include "database/distributed/distributed_graph_db.hpp"
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);
master.Shutdown();
EXPECT_TRUE(master.AwaitShutdown());
}