Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
xxchan committed Apr 4, 2024
1 parent 976dad4 commit ebcd45b
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/tests/simulation/src/slt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ use anyhow::{bail, Result};
use itertools::Itertools;
use rand::{thread_rng, Rng, SeedableRng};
use rand_chacha::ChaChaRng;
use sqllogictest::{ParallelTestError, Record};
use sqllogictest::{ParallelTestError, QueryExpect, Record, StatementExpect};

use crate::client::RisingWave;
use crate::cluster::{Cluster, KillOpts};
Expand Down Expand Up @@ -275,9 +275,8 @@ pub async fn run_slt_task(
loc: loc.clone(),
conditions: conditions.clone(),
connection: connection.clone(),
expected_error: None,
expected: StatementExpect::Ok,
sql: format!("SET BACKGROUND_DDL={background_ddl_setting};"),
expected_count: None,
};
tester.run_async(set_background_ddl).await.unwrap();
background_ddl_enabled = background_ddl_setting;
Expand Down Expand Up @@ -344,13 +343,13 @@ pub async fn run_slt_task(
// For background ddl
if let SqlCmd::CreateMaterializedView { ref name } = cmd
&& background_ddl_enabled
&& matches!(
&& !matches!(
record,
Record::Statement {
expected_error: None,
expected: StatementExpect::Error(_),
..
} | Record::Query {
expected_error: None,
expected: QueryExpect::Error(_),
..
}
)
Expand Down

0 comments on commit ebcd45b

Please sign in to comment.