Skip to content

Commit bba44ff

Browse files
committed
tarball: Remove obsolete async prefix from test names
1 parent 77c490e commit bba44ff

File tree

1 file changed

+14
-14
lines changed
  • crates/crates_io_tarball/src

1 file changed

+14
-14
lines changed

crates/crates_io_tarball/src/lib.rs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ mod tests {
190190
const MAX_SIZE: u64 = 512 * 1024 * 1024;
191191

192192
#[tokio::test]
193-
async fn async_process_tarball_test() {
193+
async fn process_tarball_test() {
194194
let tarball = TarballBuilder::new()
195195
.add_file("foo-0.0.1/Cargo.toml", MANIFEST)
196196
.await
@@ -208,7 +208,7 @@ mod tests {
208208
}
209209

210210
#[tokio::test]
211-
async fn async_process_tarball_test_size_limit() {
211+
async fn process_tarball_test_size_limit() {
212212
let tarball = TarballBuilder::new()
213213
.add_file("foo-0.0.1/Cargo.toml", MANIFEST)
214214
.await
@@ -221,7 +221,7 @@ mod tests {
221221
}
222222

223223
#[tokio::test]
224-
async fn async_process_tarball_test_incomplete_vcs_info() {
224+
async fn process_tarball_test_incomplete_vcs_info() {
225225
let tarball = TarballBuilder::new()
226226
.add_file("foo-0.0.1/Cargo.toml", MANIFEST)
227227
.await
@@ -236,7 +236,7 @@ mod tests {
236236
}
237237

238238
#[tokio::test]
239-
async fn async_process_tarball_test_vcs_info() {
239+
async fn process_tarball_test_vcs_info() {
240240
let vcs_info = br#"{"path_in_vcs": "path/in/vcs"}"#;
241241
let tarball = TarballBuilder::new()
242242
.add_file("foo-0.0.1/Cargo.toml", MANIFEST)
@@ -252,7 +252,7 @@ mod tests {
252252
}
253253

254254
#[tokio::test]
255-
async fn async_process_tarball_test_manifest() {
255+
async fn process_tarball_test_manifest() {
256256
let manifest = br#"
257257
[package]
258258
name = "foo"
@@ -275,7 +275,7 @@ mod tests {
275275
}
276276

277277
#[tokio::test]
278-
async fn async_process_tarball_test_manifest_with_project() {
278+
async fn process_tarball_test_manifest_with_project() {
279279
let manifest = br#"
280280
[project]
281281
name = "foo"
@@ -294,7 +294,7 @@ mod tests {
294294
}
295295

296296
#[tokio::test]
297-
async fn async_process_tarball_test_manifest_with_default_readme() {
297+
async fn process_tarball_test_manifest_with_default_readme() {
298298
let tarball = TarballBuilder::new()
299299
.add_file("foo-0.0.1/Cargo.toml", MANIFEST)
300300
.await
@@ -307,7 +307,7 @@ mod tests {
307307
}
308308

309309
#[tokio::test]
310-
async fn async_process_tarball_test_manifest_with_boolean_readme() {
310+
async fn process_tarball_test_manifest_with_boolean_readme() {
311311
let manifest = br#"
312312
[package]
313313
name = "foo"
@@ -326,7 +326,7 @@ mod tests {
326326
}
327327

328328
#[tokio::test]
329-
async fn async_process_tarball_test_lowercase_manifest() {
329+
async fn process_tarball_test_lowercase_manifest() {
330330
let manifest = br#"
331331
[package]
332332
name = "foo"
@@ -345,7 +345,7 @@ mod tests {
345345
}
346346

347347
#[tokio::test]
348-
async fn async_process_tarball_test_incorrect_manifest_casing() {
348+
async fn process_tarball_test_incorrect_manifest_casing() {
349349
let process = |file| async move {
350350
let tarball = TarballBuilder::new()
351351
.add_file(&format!("foo-0.0.1/{file}"), MANIFEST)
@@ -364,7 +364,7 @@ mod tests {
364364
}
365365

366366
#[tokio::test]
367-
async fn async_process_tarball_test_multiple_manifests() {
367+
async fn process_tarball_test_multiple_manifests() {
368368
let process = |files: Vec<_>| async move {
369369
use futures_util::stream::{self, StreamExt};
370370

@@ -392,7 +392,7 @@ mod tests {
392392
}
393393

394394
#[tokio::test]
395-
async fn async_test_lib() {
395+
async fn test_lib() {
396396
let tarball = TarballBuilder::new()
397397
.add_file("foo-0.0.1/Cargo.toml", MANIFEST)
398398
.await
@@ -409,7 +409,7 @@ mod tests {
409409
}
410410

411411
#[tokio::test]
412-
async fn async_test_lib_with_bins_and_example() {
412+
async fn test_lib_with_bins_and_example() {
413413
let tarball = TarballBuilder::new()
414414
.add_file("foo-0.0.1/Cargo.toml", MANIFEST)
415415
.await
@@ -432,7 +432,7 @@ mod tests {
432432
}
433433

434434
#[tokio::test]
435-
async fn async_test_app() {
435+
async fn test_app() {
436436
let tarball = TarballBuilder::new()
437437
.add_file("foo-0.0.1/Cargo.toml", MANIFEST)
438438
.await

0 commit comments

Comments
 (0)