From feedcf82f826e68704862a6d7e529aceb758087d Mon Sep 17 00:00:00 2001 From: hard-nett Date: Thu, 15 Aug 2024 09:57:23 -0400 Subject: [PATCH] assert gauge reset --- contracts/gauges/gauge/src/multitest/reset.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/contracts/gauges/gauge/src/multitest/reset.rs b/contracts/gauges/gauge/src/multitest/reset.rs index 32d59a61a..76877845f 100644 --- a/contracts/gauges/gauge/src/multitest/reset.rs +++ b/contracts/gauges/gauge/src/multitest/reset.rs @@ -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); Ok(()) }