Skip to content

Commit 0f8d2e1

Browse files
committed
test: update invariant_NoPriceChangesBeforeStart, add comment
1 parent 9480014 commit 0f8d2e1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/invariant/DopplerInvariants.sol

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,10 @@ contract DopplerInvariantsTest is BaseTest {
122122
}
123123
}
124124

125+
/// forge-config: default.invariant.fail-on-revert = true
125126
function invariant_NoPriceChangesBeforeStart() public {
126127
vm.warp(DEFAULT_STARTING_TIME - 1);
127-
assertEq(hook.getCurrentTick(poolId), DEFAULT_START_TICK);
128+
// TODO: I think this test is broken because we don't set the tick in the constructor.
129+
assertEq(hook.getCurrentTick(poolId), hook.getStartingTick());
128130
}
129131
}

0 commit comments

Comments
 (0)