Skip to content

Commit bc17d28

Browse files
dependabot[bot]xxchan
authored andcommittedApr 7, 2024
chore(deps): Bump sqllogictest from 0.18.0 to 0.19.1 (#16098)
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: xxchan <xxchan22f@gmail.com>
1 parent 0548fd2 commit bc17d28

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed
 

‎Cargo.lock

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/tests/simulation/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ risingwave_sqlsmith = { workspace = true }
5050
serde = "1.0.188"
5151
serde_derive = "1.0.188"
5252
serde_json = "1.0.107"
53-
sqllogictest = "0.18"
53+
sqllogictest = "0.19"
5454
tempfile = "3"
5555
tikv-jemallocator = { workspace = true }
5656
tokio = { version = "0.2.24", package = "madsim-tokio" }

‎src/tests/simulation/src/slt.rs

+5-6
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ use anyhow::{bail, Result};
2020
use itertools::Itertools;
2121
use rand::{thread_rng, Rng, SeedableRng};
2222
use rand_chacha::ChaChaRng;
23-
use sqllogictest::{ParallelTestError, Record};
23+
use sqllogictest::{ParallelTestError, QueryExpect, Record, StatementExpect};
2424

2525
use crate::client::RisingWave;
2626
use crate::cluster::{Cluster, KillOpts};
@@ -275,9 +275,8 @@ pub async fn run_slt_task(
275275
loc: loc.clone(),
276276
conditions: conditions.clone(),
277277
connection: connection.clone(),
278-
expected_error: None,
278+
expected: StatementExpect::Ok,
279279
sql: format!("SET BACKGROUND_DDL={background_ddl_setting};"),
280-
expected_count: None,
281280
};
282281
tester.run_async(set_background_ddl).await.unwrap();
283282
background_ddl_enabled = background_ddl_setting;
@@ -344,13 +343,13 @@ pub async fn run_slt_task(
344343
// For background ddl
345344
if let SqlCmd::CreateMaterializedView { ref name } = cmd
346345
&& background_ddl_enabled
347-
&& matches!(
346+
&& !matches!(
348347
record,
349348
Record::Statement {
350-
expected_error: None,
349+
expected: StatementExpect::Error(_),
351350
..
352351
} | Record::Query {
353-
expected_error: None,
352+
expected: QueryExpect::Error(_),
354353
..
355354
}
356355
)

0 commit comments

Comments
 (0)