From 0e681b5b3235a5e45284e59d46da80f6989e6a26 Mon Sep 17 00:00:00 2001 From: clemlak Date: Thu, 24 Oct 2024 16:15:11 +0400 Subject: [PATCH] test: add goNextEpoch handler function --- test/invariant/DopplerHandler.sol | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/invariant/DopplerHandler.sol b/test/invariant/DopplerHandler.sol index 543511e4..e9ab6a82 100644 --- a/test/invariant/DopplerHandler.sol +++ b/test/invariant/DopplerHandler.sol @@ -189,4 +189,8 @@ contract DopplerHandler is Test { ghost_reserve1 += sold; } } + + function goNextEpoch() public countCall(this.goNextEpoch.selector) { + vm.warp(block.timestamp + hook.getEpochLength()); + } }