Skip to content

Commit

Permalink
check powerpacks for log lifting
Browse files Browse the repository at this point in the history
  • Loading branch information
ahangsu committed Apr 27, 2023
1 parent 2b9ec82 commit b98f67a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/steps/other_v2_steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -1442,7 +1442,7 @@ def simulate_transaction(context):
@then("the simulation should succeed without any failure message")
def simulate_transaction_succeed(context):
if hasattr(context, "simulate_response"):
assert len(context.simulate_response["failure-message"]) == 0
assert len(context.simulate_response.failure_message) == 0
else:
assert (
len(context.atomic_transaction_composer_return.failure_message)
Expand Down Expand Up @@ -1496,18 +1496,18 @@ def attach_sim_request_to_txn_group_simulation(context):
)


@then('the simulation with "{power}" should not have failure message.')
@then('I check the simulation result has power packs "{power}".')
def power_pack_simulation_should_pass(context, power: str):
packs = power.split(",")
if len(packs) > 0:
if len(packs) == 0:
assert not context.simulate_response.eval_overrides
else:
assert context.simulate_response.eval_overrides

if "allow-more-logging" in packs:
assert context.simulate_response.eval_overrides.max_log_calls
assert context.simulate_response.eval_overrides.max_log_size

assert len(context.simulate_response.failure_message) == 0


@when("I prepare the transaction without signatures for simulation")
def step_impl(context):
Expand Down

0 comments on commit b98f67a

Please sign in to comment.