From 9d52a1b5e248f907e861d2ae964b88bae62d38b0 Mon Sep 17 00:00:00 2001 From: Carlos Salguero Date: Sun, 7 Oct 2018 14:00:39 -0300 Subject: [PATCH] PT-1616 Added invalid utf-8 chars to the test --- Gopkg.lock | 14 +++++++++++++- t/pt-table-checksum/pt-1616.t | 5 +++-- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/Gopkg.lock b/Gopkg.lock index ee43ed8a..bd415700 100644 --- a/Gopkg.lock +++ b/Gopkg.lock @@ -73,6 +73,18 @@ packages = ["."] revision = "bf9dde6d0d2c004a008c27aaee91170c786f6db8" +[[projects]] + name = "github.com/kr/pretty" + packages = ["."] + revision = "73f6ac0b30a98e433b289500d779f50c1a6f0712" + version = "v0.1.0" + +[[projects]] + name = "github.com/kr/text" + packages = ["."] + revision = "e2ffdb16a802fe2bb95e2e35ff34f0e53aeef34f" + version = "v0.1.0" + [[projects]] name = "github.com/mattn/go-shellwords" packages = ["."] @@ -195,6 +207,6 @@ [solve-meta] analyzer-name = "dep" analyzer-version = 1 - inputs-digest = "6e2c1fd110c892297e79498479e87f7d4c63755a5a1d63d13c82eb42a7e5fbf2" + inputs-digest = "35a93d0003438bc707c085101ccfca910f349d201cd01edc986d0ed64ef2a12f" solver-name = "gps-cdcl" solver-version = 1 diff --git a/t/pt-table-checksum/pt-1616.t b/t/pt-table-checksum/pt-1616.t index 5ec1b21a..4ec6c38f 100644 --- a/t/pt-table-checksum/pt-1616.t +++ b/t/pt-table-checksum/pt-1616.t @@ -31,7 +31,7 @@ diag("loading samples"); $sb->load_file('master', 't/pt-table-checksum/samples/pt-1616.sql'); my $num_rows = 50000; -diag("Loading $num_rows into the table. This might take some time."); +diag("Loading $num_rows rows into the table. This might take some time."); # diag(`util/mysql_random_data_load --host=127.0.0.1 --port=12345 --user=msandbox --password=msandbox junk pt_test_100 $num_rows`); my $sql = "INSERT INTO junk.pt_test_100 (id1, id2) VALUES (?, ?)"; @@ -48,6 +48,7 @@ for (my $i=0; $i < $num_rows; $i++) { $sth->execute($id1, $id2); } $sth->finish(); +$dbh->do('INSERT INTO junk.pt_test_100 (id1, id2) VALUES(UNHEX("F96DD7"), UNHEX("F96DD7"))'); # The sandbox servers run with lock_wait_timeout=3 and it's not dynamic # so we need to specify --set-vars innodb_lock_wait_timeout=3 else the tool will die. @@ -78,7 +79,7 @@ is( "--chunk-size", "1", "--resume", "--run-time", "5s", $master_dsn ); -#diag("Running test 1: \nbin/pt-table-checksum ".join(" ", @args) ); + $output = output( sub { $exit_status = pt_table_checksum::main(@args) }, stderr => 1,