Removed three autodetect tests that were rightfully failing -- I thought the tests were for cluster1 -> cluster2, but they were for cluster1, unrelated cluster2

This commit is contained in:
Brian Fraser fraserb@gmail.com
2012-11-25 19:12:17 -03:00
parent 79a5c39cec
commit 823914826a

View File

@@ -614,16 +614,9 @@ $sb->load_file('node4', "$sample/a-z.sql");
# Add node4 in the cluster2 to the DSN table. # Add node4 in the cluster2 to the DSN table.
$node1->do(qq/INSERT INTO dsns.dsns VALUES (5, null, '$c->{node4}->{dsn}')/); $node1->do(qq/INSERT INTO dsns.dsns VALUES (5, null, '$c->{node4}->{dsn}')/);
for my $args (
["using recusion-method", '--recursion-method', "dsn=$node1_dsn,D=dsns,t=dsns"],
["autodetecting everything"]
)
{
my $test = shift @$args;
$output = output( $output = output(
sub { pt_table_checksum::main(@args, sub { pt_table_checksum::main(@args,
@$args, '--recursion-method', "dsn=$node1_dsn,D=dsns,t=dsns",
qw(-d test)) qw(-d test))
}, },
stderr => 1, stderr => 1,
@@ -632,21 +625,20 @@ for my $args (
like( like(
$output, $output,
qr/h=127(?:\Q.0.0\E)?.1,P=12345 is in cluster pt_sandbox_cluster/, qr/h=127(?:\Q.0.0\E)?.1,P=12345 is in cluster pt_sandbox_cluster/,
"Detects that node1 is in pt_sandbox_cluster ($test)" "Detects that node1 is in pt_sandbox_cluster"
); );
like( like(
$output, $output,
qr/h=127(?:\Q.0.0\E)?.1,P=2900 is in cluster cluster2/, qr/h=127(?:\Q.0.0\E)?.1,P=2900 is in cluster cluster2/,
"Detects that node4 is in cluster2 ($test)" "Detects that node4 is in cluster2"
); );
unlike( unlike(
$output, $output,
qr/test/, qr/test/,
"Different clusters, no results ($test)" "Different clusters, no results"
); );
}
$sb->stop_sandbox(qw(node4 node5 node6)); $sb->stop_sandbox(qw(node4 node5 node6));