Added test for the config file.

This commit is contained in:
2022-06-19 00:42:44 -04:00
parent 8701adbd57
commit 5de4e94a6f
2 changed files with 9 additions and 1 deletions

View File

@ -13,6 +13,7 @@ impl Settings {
let s = Config::builder()
.set_default("port", 9090)?
.set_default("address", "127.0.0.1")?
.add_source(config::File::with_name("morethantext").required(false))
.add_source(
config::Environment::with_prefix("MTT")
.try_parsing(true)