Wrong constant usage in tests
pronvis opened this issue · comments
pronvis commented
anchor-token-contracts/contracts/gov/src/tests.rs
Line 1066 in c66a89c
It should be: creator_env.block.height += DEFAULT_VOTING_PERIOD;
but, because values are the same:
const DEFAULT_VOTING_PERIOD: u64 = 10000u64;
const DEFAULT_TIMELOCK_PERIOD: u64 = 10000u64;
test passed. I recommend to always use unique values in constants for tests.