mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2024-11-24 08:52:38 +02:00
tests: windows support, eschew using node.restart()
This commit is contained in:
parent
68ac0b43e2
commit
f6c1966415
@ -126,7 +126,8 @@ class SimpleAuthTest(ProbackupTest, unittest.TestCase):
|
||||
"test1", "create table t1 as select generate_series(0,100)")
|
||||
|
||||
node.append_conf("postgresql.auto.conf", "ptrack_enable = 'on'")
|
||||
node.restart()
|
||||
node.stop()
|
||||
node.slow_start()
|
||||
|
||||
try:
|
||||
self.backup_node(
|
||||
|
@ -89,11 +89,13 @@ class PtrackTest(ProbackupTest, unittest.TestCase):
|
||||
|
||||
# DISABLE PTRACK
|
||||
node.safe_psql('postgres', "alter system set ptrack_enable to off")
|
||||
node.restart()
|
||||
node.stop()
|
||||
node.slow_start()
|
||||
|
||||
# ENABLE PTRACK
|
||||
node.safe_psql('postgres', "alter system set ptrack_enable to on")
|
||||
node.restart()
|
||||
node.stop()
|
||||
node.slow_start()
|
||||
|
||||
# PTRACK BACKUP
|
||||
try:
|
||||
|
@ -403,7 +403,8 @@ class ReplicaTest(ProbackupTest, unittest.TestCase):
|
||||
replica.append_conf(
|
||||
'recovery.conf', "recovery_min_apply_delay = '300s'")
|
||||
|
||||
replica.restart()
|
||||
replica.stop()
|
||||
replica.slow_start()
|
||||
|
||||
master.pgbench_init(scale=10)
|
||||
|
||||
|
@ -5,7 +5,6 @@ import subprocess
|
||||
from datetime import datetime
|
||||
import sys
|
||||
import time
|
||||
import shutil
|
||||
|
||||
|
||||
module_name = 'restore'
|
||||
|
@ -1528,7 +1528,8 @@ class ValidateTest(ProbackupTest, unittest.TestCase):
|
||||
|
||||
node2.append_conf(
|
||||
'postgresql.auto.conf', 'archive_mode = on')
|
||||
node2.restart()
|
||||
node2.stop()
|
||||
node2.slow_start()
|
||||
|
||||
timeline_node1 = node1.get_control_data()["Latest checkpoint's TimeLineID"]
|
||||
timeline_node2 = node2.get_control_data()["Latest checkpoint's TimeLineID"]
|
||||
|
Loading…
Reference in New Issue
Block a user