Skip to content

Commit 14080dd

Browse files
committed
Pass DB port to NodeApp
1 parent 0a0b0cf commit 14080dd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

testgres/node.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1677,19 +1677,21 @@ def __init__(self, test_path, nodes_to_cleanup, os_ops=LocalOperations()):
16771677

16781678
def make_empty(
16791679
self,
1680+
port=None,
16801681
base_dir=None):
16811682
real_base_dir = os.path.join(self.test_path, base_dir)
16821683
self.os_ops.rmdirs(real_base_dir, ignore_errors=True)
16831684
self.os_ops.makedirs(real_base_dir)
16841685

1685-
node = PostgresNode(base_dir=real_base_dir)
1686+
node = PostgresNode(port=port, base_dir=real_base_dir)
16861687
node.should_rm_dirs = True
16871688
self.nodes_to_cleanup.append(node)
16881689

16891690
return node
16901691

16911692
def make_simple(
16921693
self,
1694+
port=None,
16931695
base_dir=None,
16941696
set_replication=False,
16951697
ptrack_enable=False,

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