You've already forked pg_probackup
mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2025-07-06 05:57:21 +02:00
[Issue #90] tests fix
This commit is contained in:
@ -459,7 +459,7 @@ class ArchiveTest(ProbackupTest, unittest.TestCase):
|
|||||||
f.close()
|
f.close()
|
||||||
|
|
||||||
self.switch_wal_segment(node)
|
self.switch_wal_segment(node)
|
||||||
sleep(20)
|
sleep(70)
|
||||||
|
|
||||||
# check that segment is archived
|
# check that segment is archived
|
||||||
if self.archive_compress:
|
if self.archive_compress:
|
||||||
@ -528,14 +528,14 @@ class ArchiveTest(ProbackupTest, unittest.TestCase):
|
|||||||
f.close()
|
f.close()
|
||||||
|
|
||||||
self.switch_wal_segment(node)
|
self.switch_wal_segment(node)
|
||||||
sleep(4)
|
sleep(30)
|
||||||
|
|
||||||
with open(file, 'a') as f:
|
with open(file, 'a') as f:
|
||||||
f.write(b"blahblahblahblah")
|
f.write(b"blahblahblahblah")
|
||||||
f.flush()
|
f.flush()
|
||||||
f.close()
|
f.close()
|
||||||
|
|
||||||
sleep(10)
|
sleep(40)
|
||||||
|
|
||||||
# check that segment is NOT archived
|
# check that segment is NOT archived
|
||||||
if self.archive_compress:
|
if self.archive_compress:
|
||||||
|
Reference in New Issue
Block a user