Skip to content

Commit

Permalink
tests/integrationtest2: fix bugs in the tests (pingcap#56815)
Browse files Browse the repository at this point in the history
  • Loading branch information
bb7133 authored Oct 25, 2024
1 parent 3f0514e commit 7ce5bd7
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/integrationtest2/r/br_integration.result
Original file line number Diff line number Diff line change
Expand Up @@ -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
16 changes: 16 additions & 0 deletions tests/integrationtest2/r/dumpling_import_integration.result
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion tests/integrationtest2/run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 7ce5bd7

Please sign in to comment.