summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Sabino Mullane2010-05-20 13:45:48 +0000
committerGreg Sabino Mullane2010-05-20 13:45:48 +0000
commit137723348b4cbb76ba7851d343c864bf162408c9 (patch)
tree9e63d1674dee785a6ca14ba8615b83cb979d1202
parent52f77c0eb34ed763ccef3ec6e535ad54561b7dd1 (diff)
Tweak tests for new same_schema output.
-rw-r--r--t/02_same_schema.t8
1 files changed, 4 insertions, 4 deletions
diff --git a/t/02_same_schema.t b/t/02_same_schema.t
index 44c16c2f8..f7d566002 100644
--- a/t/02_same_schema.t
+++ b/t/02_same_schema.t
@@ -248,21 +248,21 @@ $dbh1->do(q{ALTER TABLE table_w_constraint ADD CONSTRAINT constraint_of_a CHECK(
$t = qq{$S fails when first schema has an extra constraint};
like ($cp1->run($stdargs),
- qr{^$label CRITICAL.*?Table "public.table_w_constraint" on 1 has constraint "public.constraint_of_a" on column "a", but 2 does not},
+ qr{^$label CRITICAL.*?Table "public.table_w_constraint" on 1 has constraint "constraint_of_a", but 2 does not},
$t);
$dbh2->do(q{ALTER TABLE table_w_constraint ADD CONSTRAINT constraint_of_a CHECK(a < 0)});
$t = qq{$S fails when tables have differing constraints};
like ($cp1->run($stdargs),
- qr{^$label CRITICAL.*?1 differs from 2 \("CHECK \(a > 0\)" vs. "CHECK \(a < 0\)"\)},
+ qr{^$label CRITICAL.*?differs in source: a > 0 vs. a < 0},
$t);
$dbh2->do(q{ALTER TABLE table_w_constraint DROP CONSTRAINT constraint_of_a});
$t = qq{$S fails when one table is missing a constraint};
like ($cp1->run($stdargs),
- qr{^$label CRITICAL.*?Table "public.table_w_constraint" on 1 has constraint "public.constraint_of_a" on column "a", but 2 does not},
+ qr{^$label CRITICAL.*?Table "public.table_w_constraint" on 1 has constraint "constraint_of_a", but 2 does not},
$t);
$dbh1->do(q{CREATE TABLE table_w_another_cons (a int)});
@@ -271,7 +271,7 @@ $dbh2->do(q{ALTER TABLE table_w_another_cons ADD CONSTRAINT constraint_of_a CHEC
$t = qq{$S fails when similar constraints are attached to differing tables};
like ($cp1->run($stdargs),
- qr{^$label CRITICAL.*?Constraint "public.constraint_of_a" is applied to "public.table_w_constraint" on 1, but to "public.table_w_another_cons" on 2},
+ qr{^$label CRITICAL.*?Table "public.table_w_constraint" on 1 has constraint "constraint_of_a", but 2 does not},
$t);
$dbh1->do(q{DROP TABLE table_w_another_cons});