mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-04 03:26:19 +00:00
Fix 'unexpectedly succeeded' in t/pt-query-digest/processlist.t.
This commit is contained in:
@@ -27,9 +27,6 @@ my $dbh = $sb->get_dbh_for('master');
|
||||
if ( !$dbh ) {
|
||||
plan skip_all => 'Cannot connect to sandbox master';
|
||||
}
|
||||
else {
|
||||
plan tests => 3;
|
||||
}
|
||||
|
||||
my @args = qw(-F /tmp/12345/my.sandbox.cnf --processlist h=127.1 --report-format query_report);
|
||||
|
||||
@@ -58,21 +55,18 @@ my $output = output(
|
||||
# the usual stddev. -- stddev doesn't matter much. It's the other vals
|
||||
# that indicate that --processlist works.
|
||||
$exec =~ s/(\S+) 3s$/786ms 3s/;
|
||||
TODO: {
|
||||
local $::TODO = "This is a timing-related test, which may occasionally fail";
|
||||
ok(
|
||||
no_diff(
|
||||
$exec,
|
||||
"t/pt-query-digest/samples/proclist001.txt",
|
||||
cmd_output => 1,
|
||||
),
|
||||
"--processlist correctly observes and measures multiple queries"
|
||||
);
|
||||
}
|
||||
ok(
|
||||
no_diff(
|
||||
$exec,
|
||||
"t/pt-query-digest/samples/proclist001.txt",
|
||||
cmd_output => 1,
|
||||
),
|
||||
"--processlist correctly observes and measures multiple queries"
|
||||
);
|
||||
|
||||
# #############################################################################
|
||||
# Done.
|
||||
# #############################################################################
|
||||
$sb->wipe_clean($dbh);
|
||||
ok($sb->ok(), "Sandbox servers") or BAIL_OUT(__FILE__ . " broke the sandbox");
|
||||
exit;
|
||||
done_testing;
|
||||
|
Reference in New Issue
Block a user