Skip to content

Commit 152e0fc

Browse files
author
vshepard
committed
Add more logs for test_basic_temp_slot_for_stream_backup
1 parent 29a2ebc commit 152e0fc

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

tests/backup_test.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -950,10 +950,10 @@ def test_persistent_slot_for_stream_backup(self):
950950
# @unittest.skip("skip")
951951
def test_basic_temp_slot_for_stream_backup(self):
952952
""""""
953-
backup_dir = self.backup_dir
954953
node = self.pg_node.make_simple('node',
955-
set_replication=True,
956-
pg_options={'max_wal_size': '40MB'})
954+
set_replication=True,
955+
pg_options={'max_wal_size': '40MB',
956+
'log_min_messages': 'debug5'})
957957

958958
self.pb.init()
959959
self.pb.add_instance('node', node)
@@ -962,15 +962,17 @@ def test_basic_temp_slot_for_stream_backup(self):
962962

963963
# FULL backup
964964
self.pb.backup_node('node', node,
965-
options=['--stream', '--temp-slot'])
965+
options=['--stream', '--temp-slot', '--log-level-file=INFO'])
966966

967967
# FULL backup
968968
self.pb.backup_node('node', node,
969-
options=['--stream', '--slot=slot_1', '--temp-slot=on'])
969+
options=['--stream', '--slot=slot_1', '--temp-slot=on', '--log-level-file=INFO'])
970+
assert '--temp-slot=on' in self.cmd
970971

971972
# FULL backup
972973
self.pb.backup_node('node', node,
973-
options=['--stream', '--slot=slot_1', '--temp-slot=true'])
974+
options=['--stream', '--slot=slot_1', '--temp-slot=true', '--log-level-file=INFO'])
975+
assert '--temp-slot=true' in self.cmd
974976

975977
# @unittest.skip("skip")
976978
@needs_gdb

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