added benchmarks (#142)
This commit is contained in:
@@ -13,17 +13,15 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
mod common;
|
||||
|
||||
use crate::common::{TestContext, create_bucket_helper};
|
||||
use minio::s3::client::DEFAULT_REGION;
|
||||
use minio::s3::response::BucketExistsResponse;
|
||||
use minio::s3::types::S3Api;
|
||||
use minio_common::test_context::TestContext;
|
||||
|
||||
#[tokio::test(flavor = "multi_thread", worker_threads = 10)]
|
||||
async fn bucket_exists() {
|
||||
let ctx = TestContext::new_from_env();
|
||||
let (bucket_name, _cleanup) = create_bucket_helper(&ctx).await;
|
||||
let (bucket_name, _cleanup) = ctx.create_bucket_helper().await;
|
||||
|
||||
let resp: BucketExistsResponse = ctx.client.bucket_exists(&bucket_name).send().await.unwrap();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user