@@ -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
9393self .assertEqual (
94941 ,0 ,
@@ -202,7 +202,8 @@ def test_checkdb_amcheck_only_sanity(self):
202202'ERROR: Checkdb --amcheck failed' ,
203203log_file_content )
204204self .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':" ,
206207log_file_content )
207208self .assertIn (
208209'ERROR: could not open relation with OID' ,
@@ -333,11 +334,13 @@ def test_basic_checkdb_amcheck_only_sanity(self):
333334with open (log_file_path )as f :
334335log_file_content = f .read ()
335336self .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':" ,
337339log_file_content )
338340
339341self .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':" ,
341344log_file_content )
342345
343346self .assertIn (