Skip to content

Commit 610a8e2

Browse files
authored
fix tracing-test 0.2.5 compat (#3677)
## 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._
1 parent 50c825b commit 610a8e2

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

aws/rust-runtime/aws-types/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "aws-types"
3-
version = "1.3.0"
3+
version = "1.3.1"
44
authors = ["AWS Rust SDK Team <aws-sdk-rust@amazon.com>", "Russell Cohen <rcoh@amazon.com>"]
55
description = "Cross-service types for the AWS SDK."
66
edition = "2021"
@@ -27,7 +27,7 @@ hyper-rustls = { version = "0.24", optional = true, features = ["rustls-native-c
2727
[dev-dependencies]
2828
http = "0.2.4"
2929
tempfile = "3"
30-
tracing-test = "0.2.4"
30+
tracing-test = "=0.2.5"
3131
tokio = { version = "1", features = ["rt", "macros"] }
3232

3333
[build-dependencies]

aws/rust-runtime/aws-types/src/app_name.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ mod tests {
140140

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

145145
AppName::new("greaterthanfiftycharactersgreaterthanfiftycharacters").unwrap();
146146
assert!(!logs_contain(

codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/rustlang/CargoDependency.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ data class CargoDependency(
300300
val Tokio: CargoDependency =
301301
CargoDependency(
302302
"tokio",
303-
CratesIo("1.23.1"),
303+
CratesIo("=1.37.0"),
304304
DependencyScope.Dev,
305305
features = setOf("macros", "test-util", "rt-multi-thread"),
306306
)
@@ -320,7 +320,7 @@ data class CargoDependency(
320320
val TracingTest: CargoDependency =
321321
CargoDependency(
322322
"tracing-test",
323-
CratesIo("0.2.4"),
323+
CratesIo("0.2.5"),
324324
DependencyScope.Dev,
325325
features = setOf("no-env-filter"),
326326
)

0 commit comments

Comments
 (0)