Skip to content

Commit 5919e02

Browse files
committed
fix eip7002 test
1 parent 4179b04 commit 5919e02

File tree

1 file changed

+27
-23
lines changed

1 file changed

+27
-23
lines changed

playbooks/pectra-dev/eip7002-all.yaml

Lines changed: 27 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1096,12 +1096,11 @@ tasks:
10961096
expectWithdrawalRequests: "| [{validatorPubkey: .tasks.validator_pubkeys.outputs.pubkeys[6], sourceAddress: .tasks.wallet_details.outputs.address, amount: 0}]"
10971097

10981098
# send voluntary exit for key 7
1099-
- name: run_task_background
1100-
title: "Generate voluntary exit for key 7 & track inclusion"
1101-
timeout: 10m
1099+
- name: run_task_options
1100+
title: "Expect failure for voluntary exit for key 7"
11021101
config:
1103-
onBackgroundComplete: failOrIgnore
1104-
backgroundTask:
1102+
expectFailure: true
1103+
task:
11051104
name: generate_exits
11061105
title: "Send voluntary exit transaction for key 7"
11071106
config:
@@ -1110,35 +1109,40 @@ tasks:
11101109
configVars:
11111110
mnemonic: "validatorMnemonic"
11121111
startIndex: "validatorStartIndex + 7"
1113-
foregroundTask:
1114-
name: check_consensus_block_proposals
1115-
title: "Wait for inclusion of voluntary exit request for key 7"
1116-
config:
1117-
minExitCount: 1
1118-
configVars:
1119-
expectExits: "| [.tasks.validator_pubkeys.outputs.pubkeys[7]]"
11201112

1121-
# wait for withdrawal for key 6 & exit for key 7
1113+
# wait for withdrawal for key 6 & 7
11221114
- name: run_tasks_concurrent
1123-
title: "Wait for withdrawal for key 6 & exit for key 7"
1115+
title: "Wait for all withdrawals for key 6 & 7"
11241116
config:
11251117
tasks:
11261118
- name: check_consensus_block_proposals
1127-
title: "Check withdrawal for key 6 (expect 1-1.1 ETH)"
1119+
title: "Check withdrawal for key 6 (expect 1 ETH)"
1120+
timeout: 2h
1121+
config:
1122+
minWithdrawalCount: 1
1123+
configVars:
1124+
expectWithdrawals: "| [{publicKey: .tasks.validator_pubkeys.outputs.pubkeys[6], address: .tasks.wallet_details.outputs.address, minAmount: 1000000000, maxAmount: 1000000000}]"
1125+
- name: check_consensus_block_proposals
1126+
title: "Check withdrawal for key 6 (expect 1.1 ETH)"
1127+
timeout: 2h
1128+
config:
1129+
minWithdrawalCount: 1
1130+
configVars:
1131+
expectWithdrawals: "| [{publicKey: .tasks.validator_pubkeys.outputs.pubkeys[6], address: .tasks.wallet_details.outputs.address, minAmount: 1100000000, maxAmount: 1100000000}]"
1132+
- name: check_consensus_block_proposals
1133+
title: "Check withdrawal for key 7 (expect 1 ETH)"
11281134
timeout: 2h
11291135
config:
11301136
minWithdrawalCount: 1
11311137
configVars:
1132-
expectWithdrawals: "| [{publicKey: .tasks.validator_pubkeys.outputs.pubkeys[6], address: .tasks.wallet_details.outputs.address, minAmount: 1000000000, maxAmount: 1100000000}]"
1133-
- name: check_consensus_validator_status
1134-
title: "Wait for key 7 to exit"
1135-
timeout: 1h
1138+
expectWithdrawals: "| [{publicKey: .tasks.validator_pubkeys.outputs.pubkeys[7], address: .tasks.wallet_details.outputs.address, minAmount: 1000000000, maxAmount: 1000000000}]"
1139+
- name: check_consensus_block_proposals
1140+
title: "Check withdrawal for key 7 (expect 1.1 ETH)"
1141+
timeout: 2h
11361142
config:
1137-
validatorStatus:
1138-
- active_exiting
1139-
- exited_unslashed
1143+
minWithdrawalCount: 1
11401144
configVars:
1141-
validatorPubKey: "tasks.validator_pubkeys.outputs.pubkeys[7]"
1145+
expectWithdrawals: "| [{publicKey: .tasks.validator_pubkeys.outputs.pubkeys[7], address: .tasks.wallet_details.outputs.address, minAmount: 1100000000, maxAmount: 1100000000}]"
11421146

11431147
# Test8:
11441148

0 commit comments

Comments
 (0)