Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
messense committed Dec 17, 2024
1 parent 14e1205 commit 920527e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
}

Expand Down

0 comments on commit 920527e

Please sign in to comment.