Skip to content

Commit

Permalink
refactor test
Browse files Browse the repository at this point in the history
  • Loading branch information
MdTeach committed Dec 19, 2024
1 parent 0ebec7a commit 89a9095
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions functional-tests/fn_prover_el_dispatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
import testenv
from utils import wait_for_proof_with_time_out

# Parameters defining the range of Execution Engine (EE) blocks to be proven.
EE_PROVER_PARAMS = {
"start_block": 1,
"end_block": 3,
}


@flexitest.register
class ProverClientTest(testenv.StrataTester):
Expand All @@ -18,9 +24,11 @@ def main(self, ctx: flexitest.RunContext):
# Wait for the some block building
time.sleep(60)

# Dispatch the prover task
task_id = prover_client_rpc.dev_strata_proveELBlock(1)
self.debug(f"got the task id: {task_id}")
# Prove EL blocks from START_BLOCK to END_BLOCK
task_id = prover_client_rpc.dev_strata_proveELBlocks(
(EE_PROVER_PARAMS["start_block"], EE_PROVER_PARAMS["end_block"])
)
print("got the task id: {}", task_id)
assert task_id is not None

time_out = 10 * 60
Expand Down

0 comments on commit 89a9095

Please sign in to comment.