mirror of https://github.com/rwf2/Rocket.git
Add a test verifying that attempting to manage the same state type twice panics.
This commit is contained in:
parent
e72058de81
commit
7a62653cdd
|
@ -0,0 +1,7 @@
|
|||
struct A;
|
||||
|
||||
#[rocket::async_test]
|
||||
#[should_panic]
|
||||
async fn twice_managed_state() {
|
||||
let _ = rocket::ignite().manage(A).manage(A).inspect().await;
|
||||
}
|
Loading…
Reference in New Issue