Minor test adjustments
authorGreg Sabino Mullane <greg@endpoint.com>
Fri, 28 Nov 2014 12:27:52 +0000 (07:27 -0500)
committerGreg Sabino Mullane <greg@endpoint.com>
Fri, 28 Nov 2014 12:27:52 +0000 (07:27 -0500)
t/20-postgres.t
t/BucardoTesting.pm

index dba1efe62034b8d26189acfada327e9ebe567e1d..631c3cc14167ec42084e85e679fe5eff5df83ba6 100644 (file)
@@ -25,7 +25,7 @@ my $bct = BucardoTesting->new({location => 'postgres'})
 ## The above runs one test for each passed in database x the number of test tables
 my $numtables = keys %tabletype;
 my $numsequences = keys %sequences;
-my $single_tests = 62;
+my $single_tests = 61;
 my $check_for_row_1 = 1;
 my $check_for_row_2 = 2;
 my $check_for_row_3 = 3;
@@ -342,7 +342,7 @@ if ($dbhA->{pg_server_version} < 80400) {
 }
 $dbhA->commit();
 $dbhB->commit();
-$dbhC->do(q{SELECT setval('bucardo_test_seq3', 12345)});
+$dbhC->do(q{SELECT setval('"Bucardo_test_seq3"', 12345)});
 $dbhC->commit();
 
 like $bct->ctl('bucardo kick sync pgtest3 0'),
@@ -459,4 +459,6 @@ $bct->check_for_row([[2],[3],[7],[30]], [qw/D/], 'customcols', 'test1');
 
 unlink $service_temp_filename;
 
+$bct->ctl('bucardo stop');
+
 exit;
index 5626e2c9f511002abbf8f5993f0a8560023063ef..65ffc747f695ef71844c56f622f798f63287cce1 100644 (file)
@@ -1896,7 +1896,7 @@ sub check_sequences_same {
 
     for my $seq (sort keys %sequences) {
 
-        $SQL = "SELECT * FROM $seq";
+        $SQL = qq{SELECT * FROM "$seq"};
 
         ## The first we come across will be the standard for the others
         my (%firstone, $firstdb);