t/pt-archiver/issue_1229.t: Stop checking hardcoded indexes

This commit is contained in:
Brian Fraser
2012-11-21 13:23:26 -03:00
parent 98190d25e7
commit 514feb296c
2 changed files with 7 additions and 6 deletions

View File

@@ -42,11 +42,11 @@ my $file = "/tmp/mk-archiver-file.txt";
$sb->load_file('master', 't/pt-archiver/samples/issue_1225.sql');
$dbh->do('set names "utf8"');
my $original_rows = $dbh->selectall_arrayref('select * from issue_1225.t where i in (1, 2)');
my $original_rows = $dbh->selectall_arrayref('select c from issue_1225.t where i in (1, 2)');
is_deeply(
$original_rows,
[ [ 1, 'が'], # Your terminal must be UTF8 to see this Japanese character.
[ 2, 'が'],
[ [ 'が'], # Your terminal must be UTF8 to see this Japanese character.
[ 'が'],
],
"Inserted UTF8 data"
);
@@ -62,7 +62,8 @@ $output = output(
stderr => 1,
);
my $got = `cat $file`;
my $got = slurp_file($file);
$got =~ s/^\d+//gsm;
ok(
no_diff(
$got,

View File

@@ -1,2 +1,2 @@
1
2