1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2024-11-24 08:52:38 +02:00

Adapt tests.replica.ReplicaTest.test_archive_replica_not_null_offset to pgpro enterprise edition

This commit is contained in:
Mikhail A. Kulagin 2021-10-18 21:18:34 +03:00
parent a4308f0774
commit fd4b75abab

View File

@ -980,15 +980,17 @@ class ReplicaTest(ProbackupTest, unittest.TestCase):
"\n Output: {0} \n CMD: {1}".format( "\n Output: {0} \n CMD: {1}".format(
repr(self.output), self.cmd)) repr(self.output), self.cmd))
except ProbackupException as e: except ProbackupException as e:
self.assertIn( # vanilla -- 0/4000060
'LOG: Looking for LSN 0/4000060 in segment: 000000010000000000000004', # pgproee -- 0/4000078
self.assertRegex(
e.message, e.message,
r'LOG: Looking for LSN (0/4000060|0/4000078) in segment: 000000010000000000000004',
"\n Unexpected Error Message: {0}\n CMD: {1}".format( "\n Unexpected Error Message: {0}\n CMD: {1}".format(
repr(e.message), self.cmd)) repr(e.message), self.cmd))
self.assertIn( self.assertRegex(
'INFO: Wait for LSN 0/4000060 in archived WAL segment',
e.message, e.message,
r'INFO: Wait for LSN (0/4000060|0/4000078) in archived WAL segment',
"\n Unexpected Error Message: {0}\n CMD: {1}".format( "\n Unexpected Error Message: {0}\n CMD: {1}".format(
repr(e.message), self.cmd)) repr(e.message), self.cmd))