()
| 35 | |
| 36 | #[tokio::test(flavor = "multi_thread", worker_threads = 1)] |
| 37 | async fn e2e() { |
| 38 | let fixture = common::setup().await; |
| 39 | |
| 40 | // TODO Prefer to listen the server ready signal. |
| 41 | sleep(Duration::from_secs(5)).await; |
| 42 | |
| 43 | let result = catch_unwind(|| { |
| 44 | task::block_in_place(|| { |
| 45 | Handle::current().block_on(run_e2e()); |
| 46 | }); |
| 47 | }); |
| 48 | |
| 49 | common::teardown(fixture).await; |
| 50 | |
| 51 | if let Err(e) = result { |
| 52 | resume_unwind(e); |
| 53 | } |
| 54 | } |
| 55 | |
| 56 | async fn run_e2e() { |
| 57 | request_fpm_curl().await; |