Skip to content

Commit 687459b

Browse files
committed
fix tests
1 parent b2d2b05 commit 687459b

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

contrib/pglogical/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ include $(top_srcdir)/contrib/contrib-global.mk
2727
# typical installcheck users do not have (e.g. buildfarm clients).
2828
@installcheck: ;
2929

30-
EXTRA_INSTALL += $(top_srcdir)/contrib/pglogical_output
31-
EXTRA_REGRESS_OPTS += $(top_srcdir)/contrib/pglogical/regress-postgresql.conf
30+
EXTRA_INSTALL += contrib/pglogical_output
31+
EXTRA_REGRESS_OPTS += --temp-config=./regress-postgresql.conf
3232

3333
override CPPFLAGS := $(CPPFLAGS) -I$(top_srcdir)/contrib/pglogical_output
3434

contrib/pglogical/regress-postgresql.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ fsync=off
1717
#log_statement = 'all'
1818

1919
# Indirection of dsns for testing
20-
pglogical.provider_dsn = 'regression'
20+
pglogical.provider_dsn = 'contrib_regression'
2121
pglogical.subscriber_dsn = 'postgres'

contrib/pglogical/sql/init.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ BEGIN
3939
END IF;
4040
END;$$;
4141

42-
SELECT * FROM pglogical.create_node(node_name := 'test_provider', dsn := 'dbname=regression user=super');
42+
SELECT * FROM pglogical.create_node(node_name := 'test_provider', dsn := 'dbname=contrib_regression user=super');
4343

4444
\c :subscriber_dsn
4545
SET client_min_messages = 'warning';
@@ -56,7 +56,7 @@ SELECT * FROM pglogical.create_node(node_name := 'test_subscriber', dsn := 'dbna
5656

5757
SELECT * FROM pglogical.create_subscription(
5858
subscription_name := 'test_subscription',
59-
provider_dsn := 'dbname=regression user=super',
59+
provider_dsn := 'dbname=contrib_regression user=super',
6060
forward_origins := '{}');
6161

6262
DO $$

contrib/pglogical/sql/init_fail.sql

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ CREATE EXTENSION IF NOT EXISTS pglogical;
1717
-- fail (local node not existing)
1818
SELECT * FROM pglogical.create_subscription(
1919
subscription_name := 'test_subscription',
20-
provider_dsn := 'dbname=regression user=nonreplica',
20+
provider_dsn := 'dbname=contrib_regression user=nonreplica',
2121
forward_origins := '{}');
2222

2323
-- succeed
@@ -26,13 +26,13 @@ SELECT * FROM pglogical.create_node(node_name := 'test_subscriber', dsn := 'dbna
2626
-- fail (can't connect to remote)
2727
SELECT * FROM pglogical.create_subscription(
2828
subscription_name := 'test_subscription',
29-
provider_dsn := 'dbname=regression user=nonexisting',
29+
provider_dsn := 'dbname=contrib_regression user=nonexisting',
3030
forward_origins := '{}');
3131

3232
-- fail (remote node not existing)
3333
SELECT * FROM pglogical.create_subscription(
3434
subscription_name := 'test_subscription',
35-
provider_dsn := 'dbname=regression user=nonreplica',
35+
provider_dsn := 'dbname=contrib_regression user=nonreplica',
3636
forward_origins := '{}');
3737

3838
\c :provider_dsn
@@ -44,7 +44,7 @@ SELECT * FROM pglogical.create_node(node_name := 'test_provider', dsn := 'dbname
4444
-- fail (can't connect with replication connection to remote)
4545
SELECT * FROM pglogical.create_subscription(
4646
subscription_name := 'test_subscription',
47-
provider_dsn := 'dbname=regression user=nonreplica',
47+
provider_dsn := 'dbname=contrib_regression user=nonreplica',
4848
forward_origins := '{}');
4949

5050
-- cleanup

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy