memgraph/tests/unit/database_master.cpp
Matej Ferencevic ade2593b51 Separate distributed from single node GraphDb
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
2018-10-05 13:32:05 +02:00

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());
}