Use 'rocket::custom()' for 'State' tests.

This commit is contained in:
Sergio Benitez 2020-10-30 02:48:56 -07:00
parent b7565172eb
commit 55b651bd70
1 changed files with 1 additions and 1 deletions

View File

@ -196,7 +196,7 @@ mod tests {
fn state_is_cloneable() {
struct Token(usize);
let rocket = crate::ignite().manage(Token(123));
let rocket = crate::custom(crate::Config::default()).manage(Token(123));
let state = rocket.state::<Token>().unwrap();
assert_eq!(state.0, 123);
assert_eq!(state.clone().0, 123);