Skip to content

Commit

Permalink
[fix](test) fix unstable test cases (apache#47051)
Browse files Browse the repository at this point in the history
### What problem does this PR solve?

fix unstable test cases
  • Loading branch information
morningman authored Jan 16, 2025
1 parent 6382742 commit 56fceb4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -269,11 +269,13 @@ suite("check_before_quit", "nonConcurrent,p0") {
sql "drop materialized view if exists ${tbl}"
} else {
sql "drop table if exists ${tbl}"
// only re create table, because the table which view depends may be dropped,
// so recreate view may fail
sql(createTableSql[0][1])
def createTableSqlResult = sql "show create table ${tbl}"
logger.info("create table/view sql result info: ${createTableSqlResult}")
assertEquals(createTableSqlResult, createTableSql)
}
sql(createTableSql[0][1])
def createTableSqlResult = sql "show create table ${tbl}"
logger.info("create table/view sql result info: ${createTableSqlResult}")
assertEquals(createTableSqlResult, createTableSql)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ suite("test_autoinc_broker_load", "p0,external,hive,external_docker,external_doc
load_from_hdfs("id, name, value", table, test_load_label, "auto_inc_with_null.csv", "csv")
wait_for_load_result(test_load_label, table)
sql "sync"
qt_sql "select * from ${table};"
qt_sql "select * from ${table} order by id;"
sql """ insert into ${table} values(0, "Bob", 123), (2, "Tom", 323), (4, "Carter", 523);"""
qt_sql "select * from ${table} order by id"
sql "drop table if exists ${table};"
Expand Down

0 comments on commit 56fceb4

Please sign in to comment.