mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-10-19 17:04:00 +00:00
PT-96 Fixed tests for Schema.pm
Forced sorting of some arrays to make them possible to test
This commit is contained in:
@@ -197,7 +197,9 @@ sub find_column {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@tbls = sort {$b->{name} cmp $a->{name}} @tbls;
|
||||||
return \@tbls;
|
return \@tbls;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sub find_table {
|
sub find_table {
|
||||||
@@ -248,6 +250,7 @@ sub find_table {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@dbs = sort @dbs;
|
||||||
return \@dbs;
|
return \@dbs;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -103,8 +103,8 @@ test_find_col(
|
|||||||
test_find_col(
|
test_find_col(
|
||||||
$sq->find_column(col_name => 'c1'),
|
$sq->find_column(col_name => 'c1'),
|
||||||
[
|
[
|
||||||
['test', 'a'],
|
|
||||||
['test', 'b'],
|
['test', 'b'],
|
||||||
|
['test', 'a'],
|
||||||
['test2', 'a'],
|
['test2', 'a'],
|
||||||
],
|
],
|
||||||
"Find duplicate column c1"
|
"Find duplicate column c1"
|
||||||
@@ -148,8 +148,8 @@ test_find_col(
|
|||||||
test_find_col(
|
test_find_col(
|
||||||
$sq->find_column(col => 'c1'),
|
$sq->find_column(col => 'c1'),
|
||||||
[
|
[
|
||||||
['test', 'a'],
|
|
||||||
['test', 'b'],
|
['test', 'b'],
|
||||||
|
['test', 'a'],
|
||||||
['test2', 'a'],
|
['test2', 'a'],
|
||||||
],
|
],
|
||||||
"Find duplicate column c1 (struct)"
|
"Find duplicate column c1 (struct)"
|
||||||
|
Reference in New Issue
Block a user