@@ -36,10 +36,11 @@ def test_multithread_local_transfer(self):
36
36
"CREATE TABLE ultimate_question AS SELECT 42 AS answer" )
37
37
result = source_pg .safe_psql ("postgres" , "SELECT * FROM ultimate_question" )
38
38
39
+ dest_pg = self .make_empty_node (os .path .join (module_name , fname , 'dst' ))
39
40
dest_pg = self .catchup_node (
40
41
backup_mode = 'FULL' ,
41
42
source_pgdata = source_pg .data_dir ,
42
- destination_base_dir = os . path . join ( module_name , fname , 'dst' ) ,
43
+ destination_node = dest_pg ,
43
44
options = ['-d' , 'postgres' , '-p' , str (source_pg .port ), '--stream' , '-j' , '4' ]
44
45
)
45
46
source_pg .stop ()
@@ -69,10 +70,11 @@ def test_multithread_remote_transfer(self):
69
70
"CREATE TABLE ultimate_question AS SELECT 42 AS answer" )
70
71
result = source_pg .safe_psql ("postgres" , "SELECT * FROM ultimate_question" )
71
72
73
+ dest_pg = self .make_empty_node (os .path .join (module_name , fname , 'dst' ))
72
74
dest_pg = self .catchup_node (
73
75
backup_mode = 'FULL' ,
74
76
source_pgdata = source_pg .data_dir ,
75
- destination_base_dir = os . path . join ( module_name , fname , 'dst' ) ,
77
+ destination_node = dest_pg ,
76
78
options = ['-d' , 'postgres' , '-p' , str (source_pg .port ), '--stream' , '-j' , '4' ])
77
79
source_pg .stop ()
78
80
@@ -109,10 +111,11 @@ def test_remote_catchup(self):
109
111
source_pg .safe_psql ("postgres" , "CREATE TABLE ultimate_question(answer int)" )
110
112
111
113
# make clean shutdowned lagging behind replica
114
+ dest_pg = self .make_empty_node (os .path .join (module_name , fname , 'dst' ))
112
115
dest_pg = self .catchup_node (
113
116
backup_mode = 'FULL' ,
114
117
source_pgdata = source_pg .data_dir ,
115
- destination_base_dir = os . path . join ( module_name , fname , 'dst' ) ,
118
+ destination_node = dest_pg ,
116
119
options = ['-d' , 'postgres' , '-p' , str (source_pg .port ), '--stream' ])
117
120
self .set_replica (source_pg , dest_pg )
118
121
dest_pg .slow_start (replica = True )
@@ -129,9 +132,8 @@ def test_remote_catchup(self):
129
132
self .catchup_node (
130
133
backup_mode = 'PTRACK' ,
131
134
source_pgdata = source_pg .data_dir ,
132
- destination_base_dir = os .path .join (module_name , fname , 'dst' ),
133
- options = ['-d' , 'postgres' , '-p' , str (source_pg .port ), '--stream' ],
134
- node = dest_pg )
135
+ destination_node = dest_pg ,
136
+ options = ['-d' , 'postgres' , '-p' , str (source_pg .port ), '--stream' ])
135
137
136
138
# stop replication
137
139
source_pg .stop ()
0 commit comments