Skip to content

Commit

Permalink
test: only check internals
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbertoCentonze committed Oct 15, 2024
1 parent 7b8ecd8 commit 6b1488f
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,17 +1,12 @@
import boa


def test_default_behavior(rewards_handler, rate_manager):
initial_min_snapshot_dt = rewards_handler.min_snapshot_dt_seconds()

# Define a new min_snapshot_dt_seconds value
new_min_snapshot_dt = initial_min_snapshot_dt + 12

# TODO this is not access internal (should skip role check)
with boa.env.prank(rate_manager):
rewards_handler.set_twa_snapshot_dt(new_min_snapshot_dt)
events = rewards_handler.get_logs()
rewards_handler.eval(f"twa._set_snapshot_dt({new_min_snapshot_dt})")
# Verify event emission
events = rewards_handler.get_logs()
assert f"SnapshotIntervalUpdated(new_dt_seconds={new_min_snapshot_dt}" in repr(events)

# Verify that min_snapshot_dt_seconds has been updated
Expand Down

0 comments on commit 6b1488f

Please sign in to comment.