Skip to content
Snippets Groups Projects
Commit a8e3d77b authored by Georgy Moshkin's avatar Georgy Moshkin :speech_balloon:
Browse files

test: add a test to illustrate a bug we have

parent 2f5050bb
No related branches found
No related tags found
1 merge request!893feat: --config parameter to specify picodata configuration file
......@@ -903,6 +903,19 @@ instance:
assert_eq!(listen.port, "3301");
}
#[test]
fn default_http_port() {
let yaml = r###"
instance:
http_listen: localhost
"###;
let config = PicodataConfig::read_yaml_contents(&yaml.trim_start()).unwrap();
let listen = config.instance.http_listen.unwrap();
assert_eq!(listen.host, "localhost");
assert_eq!(listen.port, "3301"); // FIXME: This is wrong! The default
// http port should be something different
}
#[rustfmt::skip]
#[test]
fn parameter_source_precedence() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment