mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-02 02:34:19 +00:00
PT-96 Fixed tests for SimpleTCPDumpParser
This commit is contained in:
@@ -400,12 +400,15 @@ sub test_log_parser {
|
||||
misc => $args{misc},
|
||||
oktorun => $args{oktorun},
|
||||
);
|
||||
while ( my $e = $p->parse_event(%parser_args) ) {
|
||||
while ( my $e = $p->parse_event(%parser_args) ) {
|
||||
push @e, $e;
|
||||
}
|
||||
close $fh;
|
||||
};
|
||||
|
||||
# sort the array just to make this testeable.
|
||||
@e = sort { $a->{pos_in_log} <=> $b->{pos_in_log} } @e;
|
||||
|
||||
my ($base_file_name) = $args{file} =~ m/([^\/]+)$/;
|
||||
is(
|
||||
$EVAL_ERROR,
|
||||
|
Reference in New Issue
Block a user