Skip to content
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

Fix tests #330

Merged
merged 10 commits into from
Dec 18, 2016
Merged

Fix tests #330

merged 10 commits into from
Dec 18, 2016

Conversation

ebuchman
Copy link
Contributor

@ebuchman ebuchman commented Dec 8, 2016

  • use ApplyBlock in the blockchain
  • set crazy high timeout_propose to accommodate some tests (eventually they should be made robust to round changes).
  • copy returned bit arrays in voteset and commit
  • clean up p2p test scripts
  • fix grpc broadcast test script

@ebuchman
Copy link
Contributor Author

ebuchman commented Dec 8, 2016

Did you say don't copy on the commit.BitArray() ?

@ebuchman ebuchman mentioned this pull request Dec 8, 2016
11 tasks
Copy link
Contributor

@jaekwon jaekwon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise LGTM.

@@ -367,3 +370,18 @@ func getSwitchIndex(switches []*p2p.Switch, peer *p2p.Peer) int {
panic("didnt find peer in switches")
return -1
}

// so we dont violate synchrony assumptions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why don't we just modify this in the config/tendermint_test/config.go file?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would think that copying the test config every time is sufficient. Why are we also resetting it?

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 in state_test.go we do proposal skipping, where we need it to be small

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you point me to where in state_test.go? Something feels wrong about this. Like, maybe this is applying duct-tape on top that increases complexity.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


###############################################################
# for each peer:
# kill peer
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It says kill peer here, and the name is restart_peer.sh, but I don't see any logic for killing peers in this file. Misnomer? Need refactor?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep the kill happens in fast_sync/test.sh. will update comment

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually I'll do a little refactoring here

@codecov-io
Copy link

codecov-io commented Dec 12, 2016

Current coverage is 49.97% (diff: 33.33%)

No coverage report found for develop at 3aa06d0.

Powered by Codecov. Last update 3aa06d0...81f91ae

@ebuchman ebuchman force-pushed the fix_tests branch 2 times, most recently from c344e8e to 9934414 Compare December 17, 2016 18:56
@@ -367,3 +370,18 @@ func getSwitchIndex(switches []*p2p.Switch, peer *p2p.Peer) int {
panic("didnt find peer in switches")
return -1
}

// so we dont violate synchrony assumptions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you point me to where in state_test.go? Something feels wrong about this. Like, maybe this is applying duct-tape on top that increases complexity.

@ebuchman ebuchman merged commit 0204d3c into develop Dec 18, 2016
@ebuchman ebuchman deleted the fix_tests branch April 19, 2017 02:36
adrianbrink pushed a commit to heliaxdev/tendermint that referenced this pull request May 23, 2023
…ndermint#330)

Bumps [bufbuild/buf-setup-action](https://github.com/bufbuild/buf-setup-action) from 1.13.1 to 1.14.0.
- [Release notes](https://github.com/bufbuild/buf-setup-action/releases)
- [Commits](bufbuild/buf-setup-action@v1.13.1...v1.14.0)

---
updated-dependencies:
- dependency-name: bufbuild/buf-setup-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants