summaryrefslogtreecommitdiff
path: root/vendor/reqwest/tests/ci.rs
blob: a33e4d24d9e032847ee5d4b85dd821aeba028185 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#![cfg(not(target_arch = "wasm32"))]
#![cfg(not(feature = "rustls-tls-manual-roots-no-provider"))]
mod support;
use support::server;

#[tokio::test]
#[should_panic(expected = "test server should not panic")]
async fn server_panics_should_propagate() {
    let server = server::http(|_| async {
        panic!("kaboom");
    });

    let _ = reqwest::get(format!("http://{}/ci", server.addr())).await;
}