Call Sandbox::box() in all tests that use Sandbox.

This commit is contained in:
Daniel Nichter
2012-06-03 12:59:56 -04:00
parent d9a786d8f3
commit 7e880b0808
170 changed files with 341 additions and 170 deletions

View File

@@ -30,7 +30,7 @@ elsif ( !$dbh2 ) {
plan skip_all => 'Cannot connect to second sandbox master';
}
else {
plan tests => 10;
plan tests => 11;
}
$sb->load_file('master', 't/pt-upgrade/samples/001/tables.sql');
@@ -142,4 +142,5 @@ is_deeply(
diag(`rm /tmp/left-outfile.txt /tmp/right-outfile.txt 2>/dev/null`);
$sb->wipe_clean($dbh1);
$sb->wipe_clean($dbh2);
ok($sb->ok(), "Sandbox servers") or BAIL_OUT(__FILE__ . " broke the sandbox");
exit;

View File

@@ -30,7 +30,7 @@ elsif ( !$dbh2 ) {
plan skip_all => 'Cannot connect to second sandbox master';
}
else {
plan tests => 1;
plan tests => 2;
}
my $cmd = "$trunk/bin/pt-upgrade h=127.1,P=12345,u=msandbox,p=msandbox P=12347 --compare results,warnings --zero-query-times";
@@ -48,4 +48,5 @@ like(
# #############################################################################
# Done.
# #############################################################################
ok($sb->ok(), "Sandbox servers") or BAIL_OUT(__FILE__ . " broke the sandbox");
exit;

View File

@@ -30,7 +30,7 @@ elsif ( !$dbh2 ) {
plan skip_all => 'Cannot connect to second sandbox master';
}
else {
plan tests => 4;
plan tests => 5;
}
$sb->load_file('master', 't/pt-upgrade/samples/001/tables.sql');
@@ -71,4 +71,5 @@ ok(
$sb->wipe_clean($dbh1);
$sb->wipe_clean($dbh2);
ok($sb->ok(), "Sandbox servers") or BAIL_OUT(__FILE__ . " broke the sandbox");
exit;

View File

@@ -30,7 +30,7 @@ elsif ( !$dbh2 ) {
plan skip_all => 'Cannot connect to second sandbox master';
}
else {
plan tests => 1;
plan tests => 2;
}
$sb->load_file('master', 't/pt-upgrade/samples/001/tables.sql');
@@ -52,4 +52,5 @@ ok(
# #############################################################################
$sb->wipe_clean($dbh1);
$sb->wipe_clean($dbh2);
ok($sb->ok(), "Sandbox servers") or BAIL_OUT(__FILE__ . " broke the sandbox");
exit;

View File

@@ -30,7 +30,7 @@ elsif ( !$dbh2 ) {
plan skip_all => 'Cannot connect to second sandbox master';
}
else {
plan tests => 5;
plan tests => 6;
}
$sb->load_file('master', 't/pt-upgrade/samples/001/tables.sql');
@@ -95,4 +95,5 @@ ok(
# #############################################################################
$sb->wipe_clean($dbh1);
$sb->wipe_clean($dbh2);
ok($sb->ok(), "Sandbox servers") or BAIL_OUT(__FILE__ . " broke the sandbox");
exit;