fix: key in sample and test manifests
This commit is contained in:
parent
1d8993d1f0
commit
429b33f8d7
5 changed files with 5 additions and 5 deletions
|
@ -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 const DATABASE_URL_ENV_VALUE: &str = "postgres://postgres:postgres@localhost:6000/migra_tests";
|
||||||
|
|
||||||
pub struct Env {
|
pub struct Env {
|
||||||
key: &'static str
|
key: &'static str,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Env {
|
impl Env {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
directory = "database"
|
root = "database"
|
||||||
|
|
||||||
[database]
|
[database]
|
||||||
connection = "$DB_URL"
|
connection = "$DB_URL"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
directory = "database"
|
root = "database"
|
||||||
|
|
||||||
[database]
|
[database]
|
||||||
connection = "postgres://postgres:postgres@localhost:6000/migra_tests"
|
connection = "postgres://postgres:postgres@localhost:6000/migra_tests"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
mod common;
|
mod common;
|
||||||
|
|
||||||
use std::io::Write;
|
|
||||||
use common::*;
|
use common::*;
|
||||||
|
use std::io::Write;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn empty_migration_list() -> TestResult {
|
fn empty_migration_list() -> TestResult {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
directory = "database"
|
root = "database"
|
||||||
|
|
||||||
[database]
|
[database]
|
||||||
connection = "postgres://postgres:123456@localhost:5434/migra"
|
connection = "postgres://postgres:123456@localhost:5434/migra"
|
||||||
|
|
Reference in a new issue