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

Commitfcc1c4b

Browse files
committed
tests: fix checkdb tests
1 parent64550a6 commitfcc1c4b

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

‎tests/checkdb.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def test_checkdb_amcheck_only_sanity(self):
8888
'--amcheck',
8989
'--skip-block-validation',
9090
'--log-level-file=verbose',
91-
'-d','postgres','-p',str(node.port)])
91+
'-d','postgres','-p',str(node.port)])
9292
# we should die here because exception is what we expect to happen
9393
self.assertEqual(
9494
1,0,
@@ -202,7 +202,8 @@ def test_checkdb_amcheck_only_sanity(self):
202202
'ERROR: Checkdb --amcheck failed',
203203
log_file_content)
204204
self.assertIn(
205-
"WARNING: Thread [1]. Amcheck failed for index: 'public.t_heap_id_idx':",
205+
"WARNING: Thread [1]. Amcheck failed in database 'postgres' "
206+
"for index: 'public.t_heap_id_idx':",
206207
log_file_content)
207208
self.assertIn(
208209
'ERROR: could not open relation with OID',
@@ -333,11 +334,13 @@ def test_basic_checkdb_amcheck_only_sanity(self):
333334
withopen(log_file_path)asf:
334335
log_file_content=f.read()
335336
self.assertIn(
336-
"WARNING: Thread [1]. Amcheck failed for index: 'public.pgbench_accounts_pkey':",
337+
"WARNING: Thread [1]. Amcheck failed in database 'db1' "
338+
"for index: 'public.pgbench_accounts_pkey':",
337339
log_file_content)
338340

339341
self.assertIn(
340-
"WARNING: Thread [1]. Amcheck failed for index: 'public.some_index':",
342+
"WARNING: Thread [1]. Amcheck failed in database 'db2' "
343+
"for index: 'public.some_index':",
341344
log_file_content)
342345

343346
self.assertIn(

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp