Skip to content

Commit 8691e08

Browse files
committed
tests: some minor fixes for "page" module
1 parent bdcc28d commit 8691e08

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

tests/page.py

-12
Original file line numberDiff line numberDiff line change
@@ -757,8 +757,6 @@ def test_page_backup_with_lost_wal_segment(self):
757757
self.output, self.cmd))
758758
except ProbackupException as e:
759759
self.assertTrue(
760-
'INFO: Wait for WAL segment' in e.message and
761-
'to be archived' in e.message and
762760
'Could not read WAL record at' in e.message and
763761
'is absent' in e.message,
764762
'\n Unexpected Error Message: {0}\n CMD: {1}'.format(
@@ -782,8 +780,6 @@ def test_page_backup_with_lost_wal_segment(self):
782780
self.output, self.cmd))
783781
except ProbackupException as e:
784782
self.assertTrue(
785-
'INFO: Wait for WAL segment' in e.message and
786-
'to be archived' in e.message and
787783
'Could not read WAL record at' in e.message and
788784
'is absent' in e.message,
789785
'\n Unexpected Error Message: {0}\n CMD: {1}'.format(
@@ -872,8 +868,6 @@ def test_page_backup_with_corrupted_wal_segment(self):
872868
self.output, self.cmd))
873869
except ProbackupException as e:
874870
self.assertTrue(
875-
'INFO: Wait for WAL segment' in e.message and
876-
'to be archived' in e.message and
877871
'Could not read WAL record at' in e.message and
878872
'Possible WAL corruption. Error has occured during reading WAL segment' in e.message,
879873
'\n Unexpected Error Message: {0}\n CMD: {1}'.format(
@@ -896,8 +890,6 @@ def test_page_backup_with_corrupted_wal_segment(self):
896890
self.output, self.cmd))
897891
except ProbackupException as e:
898892
self.assertTrue(
899-
'INFO: Wait for WAL segment' in e.message and
900-
'to be archived' in e.message and
901893
'Could not read WAL record at' in e.message and
902894
'Possible WAL corruption. Error has occured during reading WAL segment "{0}"'.format(
903895
file) in e.message,
@@ -997,8 +989,6 @@ def test_page_backup_with_alien_wal_segment(self):
997989
self.output, self.cmd))
998990
except ProbackupException as e:
999991
self.assertTrue(
1000-
'INFO: Wait for WAL segment' in e.message and
1001-
'to be archived' in e.message and
1002992
'Could not read WAL record at' in e.message and
1003993
'Possible WAL corruption. Error has occured during reading WAL segment' in e.message,
1004994
'\n Unexpected Error Message: {0}\n CMD: {1}'.format(
@@ -1020,8 +1010,6 @@ def test_page_backup_with_alien_wal_segment(self):
10201010
"Output: {0} \n CMD: {1}".format(
10211011
self.output, self.cmd))
10221012
except ProbackupException as e:
1023-
self.assertIn('INFO: Wait for WAL segment', e.message)
1024-
self.assertIn('to be archived', e.message)
10251013
self.assertIn('Could not read WAL record at', e.message)
10261014
self.assertIn('WAL file is from different database system: '
10271015
'WAL file database system identifier is', e.message)

0 commit comments

Comments
 (0)