mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-16 08:17:20 +00:00
Validate --max|critical-load (work in progress).
This commit is contained in:
@@ -39,6 +39,21 @@ sub sleep {
|
||||
return;
|
||||
}
|
||||
|
||||
# #############################################################################
|
||||
# _parse_spec()
|
||||
# #############################################################################
|
||||
|
||||
throws_ok(
|
||||
sub { new MySQLStatusWaiter(
|
||||
max_spec => '100',
|
||||
get_status => \&get_status,
|
||||
sleep => \&sleep,
|
||||
oktorun => \&oktorun,
|
||||
) },
|
||||
qr/Invalid spec/,
|
||||
"Validate max_spec"
|
||||
);
|
||||
|
||||
# ############################################################################
|
||||
# Use initial vals + 20%.
|
||||
# ############################################################################
|
||||
|
Reference in New Issue
Block a user