File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -118,8 +118,14 @@ def test_invalid_chainstate_scenarios(self):
118
118
chainstate_snapshot_path .mkdir ()
119
119
with open (chainstate_snapshot_path / "base_blockhash" , 'wb' ) as f :
120
120
f .write (b'z' * 32 )
121
- expected_error = f"Error: A fatal internal error occurred, see debug.log for details"
122
- self .nodes [0 ].assert_start_raises_init_error (expected_msg = expected_error )
121
+
122
+ def expected_error (log_msg = "" , error_msg = "" ):
123
+ with self .nodes [0 ].assert_debug_log ([log_msg ]):
124
+ self .nodes [0 ].assert_start_raises_init_error (expected_msg = error_msg )
125
+
126
+ expected_error_msg = f"Error: A fatal internal error occurred, see debug.log for details"
127
+ error_details = f"Assumeutxo data not found for the given blockhash"
128
+ expected_error (log_msg = error_details , error_msg = expected_error_msg )
123
129
124
130
# resurrect node again
125
131
rmtree (chainstate_snapshot_path )
You can’t perform that action at this time.
0 commit comments