mirror of https://github.com/rwf2/Rocket.git
Fix the tests for latest changes.
This commit is contained in:
parent
d7353c8c2d
commit
4d189df884
|
@ -537,7 +537,7 @@ mod test {
|
||||||
|
|
||||||
assert!(RocketConfig::parse(r#"
|
assert!(RocketConfig::parse(r#"
|
||||||
[development]
|
[development]
|
||||||
address = "_idk_?"
|
address = "!_idk_?"
|
||||||
"#.to_string(), TEST_CONFIG_FILENAME).is_err());
|
"#.to_string(), TEST_CONFIG_FILENAME).is_err());
|
||||||
|
|
||||||
assert!(RocketConfig::parse(r#"
|
assert!(RocketConfig::parse(r#"
|
||||||
|
@ -547,7 +547,7 @@ mod test {
|
||||||
|
|
||||||
assert!(RocketConfig::parse(r#"
|
assert!(RocketConfig::parse(r#"
|
||||||
[production]
|
[production]
|
||||||
address = "1.2.3.4.5.6"
|
address = "!@#$%^&*()"
|
||||||
"#.to_string(), TEST_CONFIG_FILENAME).is_err());
|
"#.to_string(), TEST_CONFIG_FILENAME).is_err());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -303,7 +303,7 @@ impl Rocket {
|
||||||
///
|
///
|
||||||
/// # if false { // We don't actually want to launch the server in an example.
|
/// # if false { // We don't actually want to launch the server in an example.
|
||||||
/// rocket::ignite().mount("/hello", vec![Route::new(Get, "/world", hi)])
|
/// rocket::ignite().mount("/hello", vec![Route::new(Get, "/world", hi)])
|
||||||
/// # :.launch()
|
/// # .launch()
|
||||||
/// # }
|
/// # }
|
||||||
/// ```
|
/// ```
|
||||||
pub fn mount(mut self, base: &str, routes: Vec<Route>) -> Self {
|
pub fn mount(mut self, base: &str, routes: Vec<Route>) -> Self {
|
||||||
|
@ -351,7 +351,6 @@ impl Rocket {
|
||||||
/// rocket::ignite().launch()
|
/// rocket::ignite().launch()
|
||||||
/// # }
|
/// # }
|
||||||
/// ```
|
/// ```
|
||||||
#[cfg(not(feature = "testing"))]
|
|
||||||
pub fn launch(self) {
|
pub fn launch(self) {
|
||||||
if self.router.has_collisions() {
|
if self.router.has_collisions() {
|
||||||
warn!("Route collisions detected!");
|
warn!("Route collisions detected!");
|
||||||
|
@ -373,5 +372,4 @@ impl Rocket {
|
||||||
|
|
||||||
server.handle(self).unwrap();
|
server.handle(self).unwrap();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue