@@ -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 with open (log_file_path ) as f :
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