From 920527ebb01615ae6bf67295535ee695e8cdf8d7 Mon Sep 17 00:00:00 2001 From: messense Date: Tue, 17 Dec 2024 19:30:39 +0800 Subject: [PATCH] Add test --- tests/client.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/client.rs b/tests/client.rs index 46b2e46..6cfaf49 100644 --- a/tests/client.rs +++ b/tests/client.rs @@ -294,6 +294,9 @@ async fn test_keep_alive() -> Result<()> { assert_eq!(resp.ttl(), 60); client.lease_revoke(id).await?; + + // keep alive a revoked lease should return error + assert!(client.lease_keep_alive(id).await.is_err()); Ok(()) }