Skip to content

Commit ebf549f

Browse files
authored
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: testcontainers/testcontainers-go#2786
1 parent 7b05300 commit ebf549f

File tree

1 file changed

+1
-20
lines changed

1 file changed

+1
-20
lines changed

src/mssql_server/mod.rs

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ pub struct MssqlServer {
5757

5858
impl MssqlServer {
5959
const NAME: &'static str = "mcr.microsoft.com/mssql/server";
60-
const TAG: &'static str = "2022-CU10-ubuntu-22.04";
60+
const TAG: &'static str = "2022-CU14-ubuntu-22.04";
6161
const DEFAULT_SA_PASSWORD: &'static str = "yourStrong(!)Password";
6262

6363
/// Sets the password as `MSSQL_SA_PASSWORD`.
@@ -155,25 +155,6 @@ mod tests {
155155
Ok(())
156156
}
157157

158-
#[tokio::test]
159-
async fn custom_version() -> Result<(), Box<dyn error::Error>> {
160-
let image = MssqlServer::default().with_tag("2019-CU23-ubuntu-20.04");
161-
let container = image.start().await?;
162-
let config = new_config(
163-
container.get_host().await?,
164-
container.get_host_port_ipv4(1433).await?,
165-
"yourStrong(!)Password",
166-
);
167-
let mut client = get_mssql_client(config).await?;
168-
169-
let stream = client.query("SELECT @@VERSION", &[]).await?;
170-
let row = stream.into_row().await?.unwrap();
171-
172-
assert!(row.get::<&str, _>(0).unwrap().contains("2019"));
173-
174-
Ok(())
175-
}
176-
177158
async fn get_mssql_client(
178159
config: Config,
179160
) -> Result<Client<Compat<TcpStream>>, Box<dyn error::Error>> {

0 commit comments

Comments
 (0)