Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commiteb2a397

Browse files
committed
tests: minor fixes for corruption detection
1 parent4a3ac20 commiteb2a397

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

‎src/data.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ prepare_page(ConnectionArgs *arguments,
356356
((strict&& !is_ptrack_support)|| !strict))
357357
{
358358
/* show this message for checkdb or backup without ptrack support */
359-
elog(WARNING,"CORRUPTIONin file%s, block %u",
359+
elog(WARNING,"Corruption detectedin file\"%s\", block %u",
360360
file->path,blknum);
361361
}
362362

‎tests/backup.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,12 @@ def test_backup_detect_corruption(self):
469469
repr(self.output),self.cmd))
470470
exceptProbackupExceptionase:
471471
self.assertIn(
472-
'Insert correct message',
472+
'WARNING: Corruption detected in file',
473+
e.message,
474+
'\n Unexpected Error Message: {0}\n CMD: {1}'.format(
475+
repr(e.message),self.cmd))
476+
self.assertIn(
477+
'ERROR: Data file corruption',
473478
e.message,
474479
'\n Unexpected Error Message: {0}\n CMD: {1}'.format(
475480
repr(e.message),self.cmd))

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp