Fix the tests for latest changes.

This commit is contained in:
Sergio Benitez 2016-11-04 15:11:59 +01:00
parent d7353c8c2d
commit 4d189df884
2 changed files with 3 additions and 5 deletions

View File

@ -537,7 +537,7 @@ mod test {
assert!(RocketConfig::parse(r#"
[development]
address = "_idk_?"
address = "!_idk_?"
"#.to_string(), TEST_CONFIG_FILENAME).is_err());
assert!(RocketConfig::parse(r#"
@ -547,7 +547,7 @@ mod test {
assert!(RocketConfig::parse(r#"
[production]
address = "1.2.3.4.5.6"
address = "!@#$%^&*()"
"#.to_string(), TEST_CONFIG_FILENAME).is_err());
}

View File

@ -303,7 +303,7 @@ impl Rocket {
///
/// # if false { // We don't actually want to launch the server in an example.
/// rocket::ignite().mount("/hello", vec![Route::new(Get, "/world", hi)])
/// # :.launch()
/// # .launch()
/// # }
/// ```
pub fn mount(mut self, base: &str, routes: Vec<Route>) -> Self {
@ -351,7 +351,6 @@ impl Rocket {
/// rocket::ignite().launch()
/// # }
/// ```
#[cfg(not(feature = "testing"))]
pub fn launch(self) {
if self.router.has_collisions() {
warn!("Route collisions detected!");
@ -373,5 +372,4 @@ impl Rocket {
server.handle(self).unwrap();
}
}