Unverified Commit 610a8e26 authored by Aaron Todd's avatar Aaron Todd Committed by GitHub
Browse files

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 -->

https://github.com/smithy-lang/smithy-rs/issues/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._
parent 50c825b5
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
[package]
name = "aws-types"
version = "1.3.0"
version = "1.3.1"
authors = ["AWS Rust SDK Team <aws-sdk-rust@amazon.com>", "Russell Cohen <rcoh@amazon.com>"]
description = "Cross-service types for the AWS SDK."
edition = "2021"
@@ -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]
+1 −1
Original line number Diff line number Diff line
@@ -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(
+2 −2
Original line number Diff line number Diff line
@@ -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"),
            )
@@ -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"),
            )