Skip to content

Commit 023c3fb

Browse files
committed
use 'fetch' for backups by default
1 parent f6475d2 commit 023c3fb

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

testgres/testgres.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
DATA_DIR = "data"
7474
LOGS_DIR = "logs"
7575

76-
DEFAULT_XLOG_METHOD = "stream"
76+
DEFAULT_XLOG_METHOD = "fetch"
7777

7878

7979
class ExecUtilException(Exception):

testgres/tests/test_simple.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ def test_backup_simple(self):
161161
master.psql('postgres',
162162
'create table test as select generate_series(1, 4) i')
163163

164-
with master.backup() as backup:
164+
with master.backup('stream') as backup:
165165
with backup.spawn_primary('slave') as slave:
166166
slave.start()
167167
res = slave.execute('postgres',
@@ -172,12 +172,12 @@ def test_backup_multiple(self):
172172
with get_new_node('node') as node:
173173
node.init().start()
174174

175-
with node.backup() as backup1, \
176-
node.backup() as backup2:
175+
with node.backup('fetch') as backup1, \
176+
node.backup('fetch') as backup2:
177177

178178
self.assertNotEqual(backup1.base_dir, backup2.base_dir)
179179

180-
with node.backup() as backup:
180+
with node.backup('fetch') as backup:
181181
with backup.spawn_primary('node1', destroy=False) as node1, \
182182
backup.spawn_primary('node2', destroy=False) as node2:
183183

@@ -187,7 +187,7 @@ def test_backup_exhaust(self):
187187
with get_new_node('node') as node:
188188
node.init().start()
189189

190-
with node.backup() as backup:
190+
with node.backup('fetch') as backup:
191191
with backup.spawn_primary('node1') as node1:
192192
pass
193193

0 commit comments

Comments
 (0)