Skip to content

Commit

Permalink
Better test
Browse files Browse the repository at this point in the history
  • Loading branch information
kushudai committed Jul 20, 2024
1 parent 9ffd39d commit 9739dbe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -967,6 +967,8 @@ mod tests {

let res = read_key(&consul, key).await.unwrap();
assert_eq!(res.index, index);
create_or_update_key_value(&consul, key, string_value).await.unwrap();
assert_eq!(res.index, index);
create_or_update_key_value(&consul, key, "This is a new test").await.unwrap();
let res = read_key(&consul, key).await.unwrap();
assert!(res.index > index);
Expand Down

0 comments on commit 9739dbe

Please sign in to comment.