From 76ff34727c649afd2b99d6c515ffa47defc96de3 Mon Sep 17 00:00:00 2001 From: Xynnn007 Date: Mon, 20 Nov 2023 14:58:17 +0800 Subject: [PATCH] cdh/kms/aliyun: fix unit test If we want to ignore every test case in `rstest`, we should add `ignore` macro to every case. Signed-off-by: Xynnn007 --- confidential-data-hub/kms/src/plugins/aliyun/client.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/confidential-data-hub/kms/src/plugins/aliyun/client.rs b/confidential-data-hub/kms/src/plugins/aliyun/client.rs index 297b6b22f..9bbf12f9e 100644 --- a/confidential-data-hub/kms/src/plugins/aliyun/client.rs +++ b/confidential-data-hub/kms/src/plugins/aliyun/client.rs @@ -317,9 +317,10 @@ mod tests { use crate::{plugins::aliyun::client::AliyunKmsClient, Decrypter, Encrypter}; - #[ignore] #[rstest] + #[ignore] #[case(b"this is a test plaintext")] + #[ignore] #[case(b"this is a another test plaintext")] #[tokio::test] async fn key_lifetime(#[case] plaintext: &[u8]) {