feat: add a test macro (#170)
This commit is contained in:
@@ -24,11 +24,8 @@ use minio::s3::types::S3Api;
|
||||
use minio_common::example::create_bucket_lifecycle_config_examples;
|
||||
use minio_common::test_context::TestContext;
|
||||
|
||||
#[tokio::test(flavor = "multi_thread")]
|
||||
async fn bucket_lifecycle() {
|
||||
let ctx = TestContext::new_from_env();
|
||||
let (bucket_name, _cleanup) = ctx.create_bucket_helper().await;
|
||||
|
||||
#[minio_macros::test]
|
||||
async fn bucket_lifecycle(ctx: TestContext, bucket_name: String) {
|
||||
let config: LifecycleConfig = create_bucket_lifecycle_config_examples();
|
||||
|
||||
let resp: PutBucketLifecycleResponse = ctx
|
||||
|
||||
Reference in New Issue
Block a user