Skip to content

Commit

Permalink
assert gauge reset
Browse files Browse the repository at this point in the history
  • Loading branch information
hard-nett committed Aug 15, 2024
1 parent a27f880 commit feedcf8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion contracts/gauges/gauge/src/multitest/reset.rs
Original file line number Diff line number Diff line change
Expand Up @@ -482,14 +482,18 @@ fn test_epoch_limit() -> anyhow::Result<()> {
)
.unwrap();

// before advancing specified epoch tally won't get sampled
// advance to 1st epoch time
suite.advance_time(EPOCH);
suite
.execute_options(&gauge_contract, voter1, gauge_id)
.unwrap();
// advance to 2nd epoch time
suite.advance_time(EPOCH);
suite
.execute_options(&gauge_contract, voter1, gauge_id)
.unwrap();
// confirm gauge is now turned off
let res = suite.query_gauge(gauge_contract, gauge_id)?;
assert_eq!(res.is_stopped, true);

Check failure on line 497 in contracts/gauges/gauge/src/multitest/reset.rs

View workflow job for this annotation

GitHub Actions / Lints

used `assert_eq!` with a literal bool
Ok(())
}

0 comments on commit feedcf8

Please sign in to comment.