Migration tests moved to a separate directory (#7582)

This commit is contained in:
Marek Kotewicz 2018-01-17 10:36:40 +01:00 committed by Tomasz Drwięga
parent ee1da09996
commit 25b19835e3
2 changed files with 6 additions and 4 deletions

View File

@ -15,8 +15,6 @@
// along with Parity. If not, see <http://www.gnu.org/licenses/>.
//! DB Migration module.
#[cfg(test)]
mod tests;
#[macro_use]
extern crate log;

View File

@ -18,14 +18,18 @@
//! A random temp directory is created. A database is created within it, and migrations
//! are performed in temp sub-directories.
#[macro_use]
extern crate macros;
extern crate tempdir;
extern crate kvdb_rocksdb;
extern crate migration;
use std::collections::BTreeMap;
use std::path::{Path, PathBuf};
use std::sync::Arc;
use self::tempdir::TempDir;
use tempdir::TempDir;
use kvdb_rocksdb::Database;
use {Batch, Config, Error, SimpleMigration, Migration, Manager, ChangeColumns};
use migration::{Batch, Config, Error, SimpleMigration, Migration, Manager, ChangeColumns};
#[inline]
fn db_path(path: &Path) -> PathBuf {