From 429b33f8d765e4f25d4188cb291a72dffe73f662 Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy Date: Sat, 13 Feb 2021 23:47:35 +0300 Subject: [PATCH] fix: key in sample and test manifests --- migra-cli/tests/common/mod.rs | 2 +- migra-cli/tests/data/Migra_env_empty.toml | 2 +- migra-cli/tests/data/Migra_url_empty.toml | 2 +- migra-cli/tests/list.rs | 2 +- sample/Migra.toml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/migra-cli/tests/common/mod.rs b/migra-cli/tests/common/mod.rs index 2fc2f7c..64b1bb5 100644 --- a/migra-cli/tests/common/mod.rs +++ b/migra-cli/tests/common/mod.rs @@ -14,7 +14,7 @@ pub const DATABASE_URL_DEFAULT_ENV_NAME: &str = "DATABASE_URL"; pub const DATABASE_URL_ENV_VALUE: &str = "postgres://postgres:postgres@localhost:6000/migra_tests"; pub struct Env { - key: &'static str + key: &'static str, } impl Env { diff --git a/migra-cli/tests/data/Migra_env_empty.toml b/migra-cli/tests/data/Migra_env_empty.toml index 1eeb5b7..bfc342a 100644 --- a/migra-cli/tests/data/Migra_env_empty.toml +++ b/migra-cli/tests/data/Migra_env_empty.toml @@ -1,4 +1,4 @@ -directory = "database" +root = "database" [database] connection = "$DB_URL" diff --git a/migra-cli/tests/data/Migra_url_empty.toml b/migra-cli/tests/data/Migra_url_empty.toml index 0099afe..28aa889 100644 --- a/migra-cli/tests/data/Migra_url_empty.toml +++ b/migra-cli/tests/data/Migra_url_empty.toml @@ -1,4 +1,4 @@ -directory = "database" +root = "database" [database] connection = "postgres://postgres:postgres@localhost:6000/migra_tests" diff --git a/migra-cli/tests/list.rs b/migra-cli/tests/list.rs index 9851c9a..ea84a73 100644 --- a/migra-cli/tests/list.rs +++ b/migra-cli/tests/list.rs @@ -1,7 +1,7 @@ mod common; -use std::io::Write; use common::*; +use std::io::Write; #[test] fn empty_migration_list() -> TestResult { diff --git a/sample/Migra.toml b/sample/Migra.toml index eb1a3a4..b8e853c 100644 --- a/sample/Migra.toml +++ b/sample/Migra.toml @@ -1,4 +1,4 @@ -directory = "database" +root = "database" [database] connection = "postgres://postgres:123456@localhost:5434/migra"