Skip to content
This repository has been archived by the owner on Nov 24, 2023. It is now read-only.

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
glorv authored Jul 20, 2021
2 parents d49933a + 313bad3 commit d436f23
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tests/case_sensitive/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -91,18 +91,15 @@ function run() {
run_sql "show tables from UPPER_DB_ROUTE" $TIDB_PORT $TIDB_PASSWORD
check_contains "do_table_route"
check_not_contains "Do_table_ignore"
run_sql_tidb_with_retry "select count(*) from UPPER_DB_ROUTE.do_table_route" "count(*): 5"

run_sql "select count(*) from UPPER_DB_ROUTE.do_table_route" $TIDB_PORT $TIDB_PASSWORD
# ensure the truncate is ignored and the new row is inserted
check_contains "count(*): 5"
# test binlog event filter
run_sql "truncate table Upper_DB.Do_Table" $MYSQL_PORT1 $MYSQL_PASSWORD1
# insert another row
run_sql "INSERT INTO Upper_DB.Do_Table (id, name) values (103, 'new');" $MYSQL_PORT1 $MYSQL_PASSWORD1
sleep 2
run_sql "select count(*) from UPPER_DB_ROUTE.do_table_route" $TIDB_PORT $TIDB_PASSWORD
# ensure the truncate is ignored and the new row is inserted
check_contains "count(*): 6"
run_sql_tidb_with_retry "select count(*) from UPPER_DB_ROUTE.do_table_route" "count(*): 6"

export GO_FAILPOINTS=''
}
Expand Down

0 comments on commit d436f23

Please sign in to comment.