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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user