This repository has been archived by the owner on Aug 2, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 111
p2p/simulation: Test snapshot correctness and minimal benchmark #1038
Closed
Closed
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
89245fb
p2p/simulation: WIP minimal snapshot test
nolash 1e0244d
p2p/simulation: Add snapshot create, load and verify to snapshot test
nolash f44da20
build: add test tag for tests
nolash 5752241
p2p/simulations, build: Revert travis change, build test sym always
nolash de133fc
p2p/simulations: Add comments, timeout check on additional events
nolash 8386370
p2p/simulation: Add benchmark template for minimal peer protocol init
nolash 9532734
p2p/simulations: Remove unused code
nolash f32748a
p2p/simulation: Correct timer reset
nolash fb82f70
p2p/simulations: Put snapshot check events in buffer and call blocking
nolash b503e42
p2p/simulations: TestSnapshot fail if Load function returns early
janos 76c6758
p2p/simulations: TestSnapshot wait for all connections before returning
janos 834bafd
p2p/simulation: Revert to before wait for snap load (5e75594)
nolash b5ee891
p2p/simulations: add "conns after load" subtest to TestSnapshot
janos File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
use
sync.Once
instead?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.
well, I'm not sure it's clearer in this case. It would if both shutdowns were the same.