mirror of
https://github.com/denoland/deno.git
synced 2025-08-03 18:38:33 +00:00
Remove _async from method names since _sync are gone (#4128)
This commit is contained in:
parent
fe181e2b48
commit
f47f3f9672
11 changed files with 81 additions and 90 deletions
|
@ -238,7 +238,7 @@ mod tests {
|
|||
use super::*;
|
||||
|
||||
#[tokio::test]
|
||||
async fn test_fetch_sync_string() {
|
||||
async fn test_fetch_string() {
|
||||
let http_server_guard = crate::test_util::http_server();
|
||||
// Relies on external http server. See tools/http_server.py
|
||||
let url =
|
||||
|
@ -388,7 +388,7 @@ mod tests {
|
|||
}
|
||||
|
||||
#[tokio::test]
|
||||
async fn test_fetch_with_cafile_sync_string() {
|
||||
async fn test_fetch_with_cafile_string() {
|
||||
let http_server_guard = crate::test_util::http_server();
|
||||
// Relies on external http server. See tools/http_server.py
|
||||
let url =
|
||||
|
@ -402,7 +402,6 @@ mod tests {
|
|||
)))
|
||||
.unwrap();
|
||||
let result = fetch_once(client, &url, None).await;
|
||||
|
||||
if let Ok(FetchOnceResult::Code(body, headers)) = result {
|
||||
assert!(!body.is_empty());
|
||||
assert_eq!(headers.get("content-type").unwrap(), "application/json");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue