@@ -126,7 +126,7 @@ def __repr__(self):
126126
127127
128128class PostgresNode (object ):
129- def __init__ (self , name = None , port = None , base_dir = None , conn_params : ConnectionParams = ConnectionParams (), bin_dir = None , prefix = None ):
129+ def __init__ (self , name = None , base_dir = None , port = None , conn_params : ConnectionParams = ConnectionParams (), bin_dir = None , prefix = None ):
130130 """
131131 PostgresNode constructor.
132132
@@ -1687,30 +1687,30 @@ def __init__(self, test_path=None, nodes_to_cleanup=None, os_ops=LocalOperations
16871687
16881688 def make_empty (
16891689 self ,
1690- port = None ,
1691- base_dir = None ):
1690+ base_dir = None ,
1691+ port = None ):
16921692 real_base_dir = os .path .join (self .test_path , base_dir )
16931693 self .os_ops .rmdirs (real_base_dir , ignore_errors = True )
16941694 self .os_ops .makedirs (real_base_dir )
16951695
1696- node = PostgresNode (port = port , base_dir = real_base_dir )
1696+ node = PostgresNode (base_dir = real_base_dir , port = port )
16971697 node .should_rm_dirs = True
16981698 self .nodes_to_cleanup .append (node )
16991699
17001700 return node
17011701
17021702 def make_simple (
17031703 self ,
1704- port = None ,
17051704 base_dir = None ,
1705+ port = None ,
17061706 set_replication = False ,
17071707 ptrack_enable = False ,
17081708 initdb_params = [],
17091709 pg_options = {},
17101710 checksum = True ):
17111711 if checksum and '--data-checksums' not in initdb_params :
17121712 initdb_params .append ('--data-checksums' )
1713- node = self .make_empty (base_dir )
1713+ node = self .make_empty (base_dir , port )
17141714 node .init (
17151715 initdb_params = initdb_params , allow_streaming = set_replication )
17161716
0 commit comments