Skip to content

Commit

Permalink
rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelScofield committed Jun 26, 2023
1 parent a04f75a commit db6edab
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/meta-srv/src/service/store/txn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ mod tests {
async fn test_txn_compare_equal() {
let kv_store = create_kv_store().await;
let key = vec![101u8];
kv_store.delete(key.clone(), false).await.unwrap();
assert!(kv_store.delete(key.clone(), false).await.is_ok());

let txn = Txn::new()
.when(vec![Compare::with_not_exist_value(
Expand Down Expand Up @@ -332,7 +332,7 @@ mod tests {
async fn test_txn_compare_greater() {
let kv_store = create_kv_store().await;
let key = vec![102u8];
kv_store.delete(key.clone(), false).await.unwrap();
assert!(kv_store.delete(key.clone(), false).await.is_ok());

let txn = Txn::new()
.when(vec![Compare::with_not_exist_value(
Expand Down Expand Up @@ -375,7 +375,7 @@ mod tests {
async fn test_txn_compare_less() {
let kv_store = create_kv_store().await;
let key = vec![103u8];
kv_store.delete(vec![3], false).await.unwrap();
assert!(kv_store.delete(vec![3], false).await.is_ok());

let txn = Txn::new()
.when(vec![Compare::with_not_exist_value(
Expand Down Expand Up @@ -418,7 +418,7 @@ mod tests {
async fn test_txn_compare_not_equal() {
let kv_store = create_kv_store().await;
let key = vec![104u8];
kv_store.delete(key.clone(), false).await.unwrap();
assert!(kv_store.delete(key.clone(), false).await.is_ok());

let txn = Txn::new()
.when(vec![Compare::with_not_exist_value(
Expand Down

0 comments on commit db6edab

Please sign in to comment.