Skip to content

Commit

Permalink
fix tracing-test 0.2.5 compat (#3677)
Browse files Browse the repository at this point in the history
## Motivation and Context
<!--- Why is this change required? What problem does it solve? -->
<!--- If it fixes an open issue, please link to the issue here -->

#3676

## Description

Internals one of our tests was leveraging has changed in latest release
of `tracing-test`, updates version and test to be compatible.

----

_By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice._
  • Loading branch information
aajtodd authored Jun 3, 2024
1 parent 50c825b commit 610a8e2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions aws/rust-runtime/aws-types/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "aws-types"
version = "1.3.0"
version = "1.3.1"
authors = ["AWS Rust SDK Team <[email protected]>", "Russell Cohen <[email protected]>"]
description = "Cross-service types for the AWS SDK."
edition = "2021"
Expand All @@ -27,7 +27,7 @@ hyper-rustls = { version = "0.24", optional = true, features = ["rustls-native-c
[dev-dependencies]
http = "0.2.4"
tempfile = "3"
tracing-test = "0.2.4"
tracing-test = "=0.2.5"
tokio = { version = "1", features = ["rt", "macros"] }

[build-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion aws/rust-runtime/aws-types/src/app_name.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ mod tests {

// HACK: there's no way to reset tracing-test, so just
// reach into its internals and clear it manually
tracing_test::internal::GLOBAL_BUF.lock().unwrap().clear();
tracing_test::internal::global_buf().lock().unwrap().clear();

AppName::new("greaterthanfiftycharactersgreaterthanfiftycharacters").unwrap();
assert!(!logs_contain(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ data class CargoDependency(
val Tokio: CargoDependency =
CargoDependency(
"tokio",
CratesIo("1.23.1"),
CratesIo("=1.37.0"),
DependencyScope.Dev,
features = setOf("macros", "test-util", "rt-multi-thread"),
)
Expand All @@ -320,7 +320,7 @@ data class CargoDependency(
val TracingTest: CargoDependency =
CargoDependency(
"tracing-test",
CratesIo("0.2.4"),
CratesIo("0.2.5"),
DependencyScope.Dev,
features = setOf("no-env-filter"),
)
Expand Down

0 comments on commit 610a8e2

Please sign in to comment.