Skip to content

Commit b86ba06

Browse files
committed
Add Yield to Create a Test Vector
1 parent 68a9c02 commit b86ba06

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/core/pyspec/eth2spec/test/gloas/block_processing/test_process_execution_payload_bid.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,10 +384,13 @@ def test_process_block_then_slash_non_timely_builder(spec, state):
384384
)
385385

386386
block.body.signed_execution_payload_bid = signed_bid
387+
yield "pre", state
388+
yield "block", block
387389
spec.process_block(state, block)
388390
# Slash validator
389391
spec.slash_validator(state, builder_index)
390-
392+
yield "post", state
393+
391394
payment_slot = spec.SLOTS_PER_EPOCH + (block.slot % spec.SLOTS_PER_EPOCH)
392395
payment = state.builder_pending_payments[payment_slot]
393396
assert payment.withdrawal.amount == value

0 commit comments

Comments
 (0)