From fd4b75ababb4152bfe53a8c1c2d9081304198915 Mon Sep 17 00:00:00 2001 From: "Mikhail A. Kulagin" Date: Mon, 18 Oct 2021 21:18:34 +0300 Subject: [PATCH] Adapt tests.replica.ReplicaTest.test_archive_replica_not_null_offset to pgpro enterprise edition --- tests/replica.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/replica.py b/tests/replica.py index fe33e9ac..8fb89c22 100644 --- a/tests/replica.py +++ b/tests/replica.py @@ -980,15 +980,17 @@ class ReplicaTest(ProbackupTest, unittest.TestCase): "\n Output: {0} \n CMD: {1}".format( repr(self.output), self.cmd)) except ProbackupException as e: - self.assertIn( - 'LOG: Looking for LSN 0/4000060 in segment: 000000010000000000000004', + # vanilla -- 0/4000060 + # pgproee -- 0/4000078 + self.assertRegex( e.message, + r'LOG: Looking for LSN (0/4000060|0/4000078) in segment: 000000010000000000000004', "\n Unexpected Error Message: {0}\n CMD: {1}".format( repr(e.message), self.cmd)) - self.assertIn( - 'INFO: Wait for LSN 0/4000060 in archived WAL segment', + self.assertRegex( e.message, + r'INFO: Wait for LSN (0/4000060|0/4000078) in archived WAL segment', "\n Unexpected Error Message: {0}\n CMD: {1}".format( repr(e.message), self.cmd))