Skip to content

Commit 615a54e

Browse files
committed
tests: minor fixes
1 parent 6f89a53 commit 615a54e

File tree

2 files changed

+9
-16
lines changed

2 files changed

+9
-16
lines changed

tests/backup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1601,7 +1601,7 @@ def test_basic_temp_slot_for_stream_backup(self):
16011601
options=['--stream', '--slot=slot_1', '--temp-slot'])
16021602

16031603
# Clean after yourself
1604-
self.del_test_dir(module_name, fname)
1604+
self.del_test_dir(module_name, fname, [node])
16051605

16061606
# @unittest.skip("skip")
16071607
def test_backup_concurrent_drop_table(self):

tests/delta.py

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -45,39 +45,32 @@ def test_basic_delta_vacuum_truncate(self):
4545
"create table t_heap as select i as id, "
4646
"md5(i::text) as text, "
4747
"md5(repeat(i::text,10))::tsvector as tsvector "
48-
"from generate_series(0,1024) i;"
49-
)
48+
"from generate_series(0,1024) i;")
5049

5150
node.safe_psql(
5251
"postgres",
53-
"vacuum t_heap"
54-
)
52+
"vacuum t_heap")
5553

5654
self.backup_node(backup_dir, 'node', node, options=['--stream'])
5755

5856
node.safe_psql(
5957
"postgres",
60-
"delete from t_heap where ctid >= '(11,0)'"
61-
)
58+
"delete from t_heap where ctid >= '(11,0)'")
6259

6360
node.safe_psql(
6461
"postgres",
65-
"vacuum t_heap"
66-
)
62+
"vacuum t_heap")
6763

6864
self.backup_node(
69-
backup_dir, 'node', node, backup_type='delta'
70-
)
65+
backup_dir, 'node', node, backup_type='delta')
7166

7267
self.backup_node(
73-
backup_dir, 'node', node, backup_type='delta'
74-
)
68+
backup_dir, 'node', node, backup_type='delta')
7569

7670
pgdata = self.pgdata_content(node.data_dir)
7771

7872
self.restore_node(
79-
backup_dir, 'node', node_restored
80-
)
73+
backup_dir, 'node', node_restored)
8174

8275
# Physical comparison
8376
pgdata_restored = self.pgdata_content(node_restored.data_dir)
@@ -87,7 +80,7 @@ def test_basic_delta_vacuum_truncate(self):
8780
node_restored.slow_start()
8881

8982
# Clean after yourself
90-
self.del_test_dir(module_name, fname, [node])
83+
self.del_test_dir(module_name, fname, [node, node_restored])
9184

9285
# @unittest.skip("skip")
9386
def test_delta_vacuum_truncate_1(self):

0 commit comments

Comments
 (0)