Validate --max|critical-load (work in progress).

This commit is contained in:
Daniel Nichter
2012-05-25 12:15:11 -06:00
parent ed95534efa
commit bbe6125d8f
4 changed files with 79 additions and 17 deletions

View File

@@ -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%.
# ############################################################################