Update to tokio 1.0, bytes 1.0 (#1076)
Co-authored-by: Wim Looman <git@nemo157.com> Co-authored-by: Paolo Barbolini <paolo@paolo565.org>
This commit is contained in:
@@ -282,7 +282,9 @@ fn test_blocking_inside_a_runtime() {
|
||||
|
||||
let url = format!("http://{}/text", server.addr());
|
||||
|
||||
let mut rt = tokio::runtime::Builder::new().build().expect("new rt");
|
||||
let rt = tokio::runtime::Builder::new_current_thread()
|
||||
.build()
|
||||
.expect("new rt");
|
||||
|
||||
rt.block_on(async move {
|
||||
let _should_panic = reqwest::blocking::get(&url);
|
||||
|
||||
Reference in New Issue
Block a user