Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Add functional test coverage for rounds system - Closes #1303 #1747

Merged
merged 137 commits into from
Mar 28, 2018

Conversation

4miners
Copy link
Contributor

@4miners 4miners commented Mar 16, 2018

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

@4miners
Copy link
Contributor Author

4miners commented Mar 27, 2018

@MaciejBaj @nazarhussain @SargeKhan Comments are done, please review again.


function forge(library, cb) {
var keypairs = library.rewiredModules.delegates.__get__('__private.keypairs');
Copy link
Contributor

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)
Copy link
Contributor

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?

Copy link
Contributor Author

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. :)

});
});

describe('__private.loadDelegates', () => {
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Contributor Author

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.

@MaciejBaj MaciejBaj merged commit 1f22bda into 1.0.0 Mar 28, 2018
@MaciejBaj MaciejBaj deleted the 1303_rounds-functional-tests branch March 28, 2018 15:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants