-
Notifications
You must be signed in to change notification settings - Fork 457
Add functional test coverage for rounds system - Closes #1303 #1747
Conversation
@MaciejBaj @nazarhussain @SargeKhan Comments are done, please review again. |
test/functional/system/common.js
Outdated
|
||
function forge(library, cb) { | ||
var keypairs = library.rewiredModules.delegates.__get__('__private.keypairs'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
// If account with address exists - set expected values | ||
if (accounts[address]) { | ||
// Update sender | ||
accounts[address].balance = new Bignum(accounts[address].balance) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we don't need to minus the transaction amount?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need and we do. :)
test/functional/system/rounds.js
Outdated
}); | ||
}); | ||
|
||
describe('__private.loadDelegates', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do we have these tests in rounds functional tests?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because rounds tests depend on this, before start actual tests would be nice to be sure that delegates were loaded correctly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved those, together with genesis block tests, to application functional system tests.
What was the problem?
Missing functional system tests for rounds.
How did I fix it?
Add tests.
How to test it?
Run tests.
Review checklist