mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2025-01-07 13:40:17 +02:00
[Issue #90] tests fix
This commit is contained in:
parent
9f8df3faa3
commit
3a0046e686
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user