In Ganache, I use
evm_mine to simulate the passage of time.
Assuming block times are accurate enough, what are the best practices to test some contracts on the mainnet or a testnet which depend on block numbers for various computations?
truffle test process be started and, when a time-dependent test is hit, just run a while instruction and wait for the block number to be generated? Or should something like Oraclize be used?