moved Tokio runtime from general dependency to dev dependency (#167)

* moved Tokio runtime from general dependency to dev dependency
* reduced number of worker threads in tests
This commit is contained in:
Henk-Jan Lebbink
2025-06-18 11:26:29 +02:00
committed by GitHub
parent 1af3f72c12
commit 6f904b452a
54 changed files with 305 additions and 298 deletions

View File

@@ -20,10 +20,10 @@ use minio::s3::response::{GetBucketVersioningResponse, PutBucketVersioningRespon
use minio::s3::types::S3Api;
use minio_common::test_context::TestContext;
#[tokio::test(flavor = "multi_thread", worker_threads = 10)]
#[tokio::test(flavor = "multi_thread")]
async fn bucket_versioning_s3() {
let ctx = TestContext::new_from_env();
if ctx.client.is_minio_express() {
if ctx.client.is_minio_express().await {
println!("Skipping test because it is running in MinIO Express mode");
return;
}
@@ -70,10 +70,10 @@ async fn bucket_versioning_s3() {
assert_eq!(resp.region, DEFAULT_REGION);
}
#[tokio::test(flavor = "multi_thread", worker_threads = 10)]
#[tokio::test(flavor = "multi_thread")]
async fn bucket_versioning_s3express() {
let ctx = TestContext::new_from_env();
if !ctx.client.is_minio_express() {
if !ctx.client.is_minio_express().await {
println!("Skipping test because it is NOT running in MinIO Express mode");
return;
}