use warnings;
use lib 't','.';
use DBD::Pg;
-use Test::More tests => 50;
+use Test::More tests => 51;
use BucardoTesting;
my $bct = BucardoTesting->new({ location => 'makedelta' })
or BAIL_OUT "Creation of BucardoTesting object failed\n";
# Start up Bucardo and wait for initial syncs to finish.
ok $bct->restart_bucardo($dbhX), 'Bucardo should start';
ok $bct->wait_for_notice($dbhX, [qw(
- bucardo_syncdone_deltatest1
+ syncdone_deltatest1
)]), 'The deltatest1 sync finished';
# Should have no rows.
'Insert a row into test1 on A';
$dbhA->commit;
-## Bucardo will fire off deltatest2 itself
ok $bct->wait_for_notice($dbhX, [qw(
- bucardo_syncdone_deltatest1
- bucardo_syncdone_deltatest2
-)]), 'The deltatest1 and deltatest2 syncs have finished';
+ syncdone_deltatest1
+)]), 'The deltatest1 sync has finished';
+## Bucardo will not fire off deltatest2 itself, so we kick it
+$bct->ctl('bucardo kick sync deltatest2 0');
+
+ok $bct->wait_for_notice($dbhX, [qw(
+ syncdone_deltatest2
+)]), 'The deltatest2 sync has finished';
# The row should be in A and B, as well as C!
is_deeply $dbhB->selectall_arrayref(
$bct->ctl('bucardo kick sync deltatest2 0');
ok $bct->wait_for_notice($dbhX, [qw(
- bucardo_syncdone_deltatest1
- bucardo_syncdone_deltatest2
+ syncdone_deltatest1
+ syncdone_deltatest2
)]), 'The deltatest1 and deltatest2 syncs finished';
is_deeply $dbhA->selectall_arrayref(
$dbhA->commit;
ok $bct->wait_for_notice($dbhX, [qw(
- bucardo_syncdone_deltatest1
+ syncdone_deltatest1
)]), 'The deltatest1 sync finished';
# Kick off the second sync
$dbhA->commit;
ok $bct->wait_for_notice($dbhX, [qw(
- bucardo_syncdone_deltatest1
- bucardo_syncdone_deltatest3
+ syncdone_deltatest1
+ syncdone_deltatest3
)]), 'Syncs deltatest1 and deltatest3 finished';
is_deeply $dbhB->selectall_arrayref(