Skip to content

Commit 74fbd78

Browse files
authored
Fix health check tests (#2336)
1 parent 05fbfa6 commit 74fbd78

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/command/dev/next/router/config/parser.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ impl<'a> RouterConfigParser<'a> {
9999
.and_then(|path| path.as_str())
100100
// See https://www.apollographql.com/docs/graphos/routing/self-hosted/health-checks for
101101
// defaults
102-
.unwrap_or("/health");
102+
.unwrap_or("health");
103103

104104
let mut health_check_endpoint = addr_and_port.to_string();
105105
health_check_endpoint.push_str(path);
@@ -161,8 +161,8 @@ health_check:
161161
);
162162
let config_yaml = serde_yaml::from_str(&config_yaml_str)?;
163163
let router_config = RouterConfigParser { yaml: &config_yaml };
164-
let health_check = router_config.health_check_endpoint();
165-
assert_that!(health_check.is_ok()).is_equal_to(is_health_check_enabled);
164+
let health_check = router_config.health_check_enabled();
165+
assert_that!(health_check).is_equal_to(is_health_check_enabled);
166166
Ok(())
167167
}
168168

0 commit comments

Comments
 (0)