mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-12 19:02:12 +00:00
tests: add local_db() method to cql_test_env
Needed for functionality not yet exposed by cql.
This commit is contained in:
@@ -149,6 +149,10 @@ public:
|
||||
});
|
||||
}
|
||||
|
||||
virtual database& local_db() override {
|
||||
return _db->local();
|
||||
}
|
||||
|
||||
future<> start() {
|
||||
return _core_local.start();
|
||||
}
|
||||
|
||||
@@ -16,6 +16,8 @@
|
||||
#include "bytes.hh"
|
||||
#include "schema.hh"
|
||||
|
||||
class database;
|
||||
|
||||
class cql_test_env {
|
||||
public:
|
||||
virtual ~cql_test_env() {};
|
||||
@@ -40,6 +42,8 @@ public:
|
||||
boost::any expected) = 0;
|
||||
|
||||
virtual future<> stop() = 0;
|
||||
|
||||
virtual database& local_db() = 0;
|
||||
};
|
||||
|
||||
future<::shared_ptr<cql_test_env>> make_env_for_test();
|
||||
|
||||
Reference in New Issue
Block a user