ade2593b51
Summary: To clean the working directory after this diff you should execute: ``` rm src/database/counters_rpc_messages.capnp rm src/database/counters_rpc_messages.hpp rm src/database/serialization.capnp rm src/database/serialization.hpp ``` Reviewers: teon.banek, msantl Reviewed By: msantl Subscribers: pullbot Differential Revision: https://phabricator.memgraph.io/D1636
14 lines
356 B
C++
14 lines
356 B
C++
#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());
|
|
}
|