Skip to content

Commit

Permalink
Added check to config json load test
Browse files Browse the repository at this point in the history
  • Loading branch information
danielsanchezq committed Apr 15, 2021
1 parent f14527d commit 2ba1ac5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion vit-servicing-station-lib/src/server/settings/config.rs
Expand Up @@ -405,7 +405,8 @@ mod test {
"log" : {
"log_output_path" : "./server.log",
"log_level" : "error"
}
},
"service_version" : "v0.2.0"
}
"#;

Expand All @@ -430,6 +431,7 @@ mod test {
CorsOrigin("https://foo.test".to_string())
);
assert_eq!(cors_config.max_age_secs.unwrap(), 60);
assert_eq!(&config.service_version, "v0.2.0");
}

#[test]
Expand Down Expand Up @@ -546,6 +548,8 @@ mod test {
"--block0-path",
"block0.bin",
"--enable-api-tokens",
"--service-version",
"v0.2.0",
]);

let merged_settings = default.override_from(&other_settings);
Expand Down

0 comments on commit 2ba1ac5

Please sign in to comment.