From 7ce5bd752f668b4037a25ded97752f3eca258100 Mon Sep 17 00:00:00 2001 From: bb7133 Date: Fri, 25 Oct 2024 01:00:44 -0700 Subject: [PATCH] tests/integrationtest2: fix bugs in the tests (#56815) ref pingcap/tidb#56556 --- tests/integrationtest2/r/br_integration.result | 2 +- .../r/dumpling_import_integration.result | 16 ++++++++++++++++ tests/integrationtest2/run-tests.sh | 2 +- 3 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 tests/integrationtest2/r/dumpling_import_integration.result diff --git a/tests/integrationtest2/r/br_integration.result b/tests/integrationtest2/r/br_integration.result index c5433f88c7c7f..5c27d7cdffd4f 100644 --- a/tests/integrationtest2/r/br_integration.result +++ b/tests/integrationtest2/r/br_integration.result @@ -6,5 +6,5 @@ br_integration t1 _tidb_rowid 101 _TIDB_ROWID br_integration t1 _tidb_rowid 1 AUTO_INCREMENT SHOW TABLE tt1 NEXT_ROW_ID; DB_NAME TABLE_NAME COLUMN_NAME NEXT_GLOBAL_ROW_ID ID_TYPE -br_integration tt1 _tidb_rowid 1 _TIDB_ROWID +br_integration tt1 _tidb_rowid 101 _TIDB_ROWID br_integration tt1 _tidb_rowid 1 AUTO_INCREMENT diff --git a/tests/integrationtest2/r/dumpling_import_integration.result b/tests/integrationtest2/r/dumpling_import_integration.result new file mode 100644 index 0000000000000..03ddc694b235f --- /dev/null +++ b/tests/integrationtest2/r/dumpling_import_integration.result @@ -0,0 +1,16 @@ +CREATE TABLE t2(c BIGINT AUTO_RANDOM PRIMARY KEY, a INT, b INT); +INSERT INTO t2(a, b) VALUES (1, 1), (2, 2), (3, 3); +SELECT (c & 31) as inc FROM t2 ORDER BY inc; +inc +1 +2 +3 +INSERT INTO tt2(a, b) VALUES (1, 1), (2, 2), (3, 3); +SELECT (c & 31) as inc FROM tt2 ORDER BY inc; +inc +1 +2 +3 +4 +5 +6 diff --git a/tests/integrationtest2/run-tests.sh b/tests/integrationtest2/run-tests.sh index fca13ea399714..a671423b46f56 100755 --- a/tests/integrationtest2/run-tests.sh +++ b/tests/integrationtest2/run-tests.sh @@ -149,7 +149,7 @@ function build_mysql_tester() { echo "building mysql-tester binary: $mysql_tester" rm -rf $mysql_tester - GOBIN=$PWD go install github.com/bb7133/mysql-tester/src@67e4fbf902623a98a859fb3d1bd39088bec8da6f + GOBIN=$PWD go install github.com/bb7133/mysql-tester/src@2148bd9e5299de307244a15ed0047c953a035dc4 mv src mysql_tester }