Skip to content

Commit

Permalink
Upgrade test, changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
kushudai committed Jul 20, 2024
1 parent b12d86a commit 9ffd39d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

### Changed

- `opentelemetry` updated to version `0.23` from `0.22`.
- `opentelemetry` updated to version `0.24` from `0.22`.
- `http` updated to version `1.0` from `0.2`.
- `hyper` updated to version `1.0` from `0.14`.
- `hyper-rustls` updated to version `0.27` from `0.24`.
- `get_service_nodes` now supports tags thanks to @gautamg795
- `read_key` now also returns the index thanks to @badalex

## 0.6.0 - 2024-04-01

Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ hyper = { version = "1", features = ["full"] }
hyper-rustls = { version = "0.27" }
hyper-util = { version = "0.1", features = ["client", "client-legacy", "tokio", "http2"] }
lazy_static = { version = "1", optional = true }
opentelemetry = { version = "0.23", optional = true }
opentelemetry = { version = "0.24", optional = true }
prometheus = { version = "0.13", optional = true }
quick-error = "2"
serde = { version = "1.0", features = ["derive"] }
Expand Down
11 changes: 9 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -961,8 +961,15 @@ mod tests {
let res = create_or_update_key_value(&consul, key, string_value).await;
assert_expected_result_with_index(res);

let res = read_key(&consul, key).await;
verify_single_value_matches(res, string_value);
let res = read_key(&consul, key).await.unwrap();
let index = res.index;
verify_single_value_matches(Ok(res), string_value);

let res = read_key(&consul, key).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);
}

#[tokio::test(flavor = "multi_thread")]
Expand Down

0 comments on commit 9ffd39d

Please sign in to comment.