tests: Use an env variable for the private seed

This commit is contained in:
Valentin Tolmer
2023-08-04 17:09:32 +02:00
committed by nitnelave
parent 042429a11d
commit 6cd6b412fe
2 changed files with 2 additions and 0 deletions

View File

@@ -2,6 +2,7 @@
use std::env::var;
pub const DB_KEY: &str = "LLDAP_DATABASE_URL";
pub const PRIVATE_KEY_SEED: &str = "LLDAP_KEY_SEED";
pub fn database_url() -> String {
let url = var(DB_KEY).ok();