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,39 +614,31 @@ $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 ( $output = output(
["using recusion-method", '--recursion-method', "dsn=$node1_dsn,D=dsns,t=dsns"], sub { pt_table_checksum::main(@args,
["autodetecting everything"] '--recursion-method', "dsn=$node1_dsn,D=dsns,t=dsns",
) qw(-d test))
{ },
my $test = shift @$args; stderr => 1,
);
$output = output( like(
sub { pt_table_checksum::main(@args, $output,
@$args, qr/h=127(?:\Q.0.0\E)?.1,P=12345 is in cluster pt_sandbox_cluster/,
qw(-d test)) "Detects that node1 is in pt_sandbox_cluster"
}, );
stderr => 1,
);
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=2900 is in cluster cluster2/,
"Detects that node1 is in pt_sandbox_cluster ($test)" "Detects that node4 is in cluster2"
); );
like( unlike(
$output, $output,
qr/h=127(?:\Q.0.0\E)?.1,P=2900 is in cluster cluster2/, qr/test/,
"Detects that node4 is in cluster2 ($test)" "Different clusters, no results"
); );
unlike(
$output,
qr/test/,
"Different clusters, no results ($test)"
);
}
$sb->stop_sandbox(qw(node4 node5 node6)); $sb->stop_sandbox(qw(node4 node5 node6));