From 25b19835e316f53366df67b66244a8eee95bc865 Mon Sep 17 00:00:00 2001 From: Marek Kotewicz Date: Wed, 17 Jan 2018 10:36:40 +0100 Subject: [PATCH] Migration tests moved to a separate directory (#7582) --- util/migration/src/lib.rs | 2 -- util/migration/{src => tests}/tests.rs | 8 ++++++-- 2 files changed, 6 insertions(+), 4 deletions(-) rename util/migration/{src => tests}/tests.rs (97%) diff --git a/util/migration/src/lib.rs b/util/migration/src/lib.rs index 31c6bac09..7b678b3a0 100644 --- a/util/migration/src/lib.rs +++ b/util/migration/src/lib.rs @@ -15,8 +15,6 @@ // along with Parity. If not, see . //! DB Migration module. -#[cfg(test)] -mod tests; #[macro_use] extern crate log; diff --git a/util/migration/src/tests.rs b/util/migration/tests/tests.rs similarity index 97% rename from util/migration/src/tests.rs rename to util/migration/tests/tests.rs index 5d6e941da..6e136e814 100644 --- a/util/migration/src/tests.rs +++ b/util/migration/tests/tests.rs @@ -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 {