mirror of
https://github.com/rwf2/Rocket.git
synced 2025-01-18 07:29:09 +00:00
Add a test verifying that attempting to manage the same state type twice panics.
This commit is contained in:
parent
e72058de81
commit
7a62653cdd
7
core/lib/tests/twice_managed_state.rs
Normal file
7
core/lib/tests/twice_managed_state.rs
Normal file
@ -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
Block a user