-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add tests for filter methods #143
Conversation
c87e0c3
to
9af9007
Compare
- This change enables interval-mining mode on Hardhat network. Without this, tx.wait(2) doesn't work(block waiting forever), as Hardhat won't mine new blocks when no new transactions sending. Ref: https://hardhat.org/hardhat-network/docs/explanation/mining-modes
9af9007
to
219fb5f
Compare
New features around Since tests on mainnet shouldn't waste too much capacity, right now most of test cases are disabled when testing on mainnet. Based on that, we should consider wether the new test case can be used for mainnet regression testing, and write conditional code for it. For example, if we think that the new test case shouldn't be used for tests on mainnet right now: const { isGwMainnetV1 } = require('../utils/network');
describe('...', () => {
if (isGwMainnetV1()) {
return;
}
...
}); |
Hi @ShookLyngs, thanks for your suggestion. |
|
I add some test cases for filter methods.
All of these cases pass on Hardhat network, but all fail on Godwoken network 😂