Skip to content

Commit a3ab87b

Browse files
Fixed pt-archiver tests
1 parent f0ee14d commit a3ab87b

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

t/pt-archiver/archive_using_channels.t

+3-12
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ elsif ( !$slave_dbh ) {
2828
} elsif ($sandbox_version lt '5.7') {
2929
plan skip_all => 'Only on MySQL 5.7+';
3030
} else {
31-
plan tests => 5;
31+
plan tests => 4;
3232
}
3333

3434
my ($master1_dbh, $master1_dsn) = $sb->start_sandbox(
@@ -76,19 +76,10 @@ $output = output(
7676
sub { $exit_status = pt_archiver::main(@args) },
7777
stderr => 1,
7878
);
79-
diag("Exit status: $exit_status");
80-
diag($output);
81-
82-
isnt(
79+
is(
8380
$exit_status,
8481
0,
85-
'Must specify a channel name',
86-
);
87-
88-
like (
89-
$output,
90-
qr/"channel" was not specified/,
91-
'Message saying channel name must be specified'
82+
'No need of channel name since there is only one master',
9283
);
9384

9485
push @args, ('--channel', 'masterchan1');

0 commit comments

Comments
 (0)