From ebf549f73ab4cd709e7b0dd327c7f0d9dcbbedd1 Mon Sep 17 00:00:00 2001 From: Artem Medvedev Date: Wed, 25 Sep 2024 19:08:35 +0200 Subject: [PATCH] fix(mssql): update version to fix crashes in CI (#219) It's realted to recent update of GH workers and similar fix was applied in Go modules: https://github.com/testcontainers/testcontainers-go/pull/2786 --- src/mssql_server/mod.rs | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/src/mssql_server/mod.rs b/src/mssql_server/mod.rs index 7a08c4d..8cfb0f3 100644 --- a/src/mssql_server/mod.rs +++ b/src/mssql_server/mod.rs @@ -57,7 +57,7 @@ pub struct MssqlServer { impl MssqlServer { const NAME: &'static str = "mcr.microsoft.com/mssql/server"; - const TAG: &'static str = "2022-CU10-ubuntu-22.04"; + const TAG: &'static str = "2022-CU14-ubuntu-22.04"; const DEFAULT_SA_PASSWORD: &'static str = "yourStrong(!)Password"; /// Sets the password as `MSSQL_SA_PASSWORD`. @@ -155,25 +155,6 @@ mod tests { Ok(()) } - #[tokio::test] - async fn custom_version() -> Result<(), Box> { - let image = MssqlServer::default().with_tag("2019-CU23-ubuntu-20.04"); - let container = image.start().await?; - let config = new_config( - container.get_host().await?, - container.get_host_port_ipv4(1433).await?, - "yourStrong(!)Password", - ); - let mut client = get_mssql_client(config).await?; - - let stream = client.query("SELECT @@VERSION", &[]).await?; - let row = stream.into_row().await?.unwrap(); - - assert!(row.get::<&str, _>(0).unwrap().contains("2019")); - - Ok(()) - } - async fn get_mssql_client( config: Config, ) -> Result>, Box> {