-
Notifications
You must be signed in to change notification settings - Fork 221
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: Add rebuild-db integration test (#3232)
Description: Adds a cucumber test to cover the `--rebuild-db` blockchain recovery functionality on the base node Motivation and Context: Improved test coverage How Has This Been Tested? `npm test -- --name "Blockchain database recovery"`
- Loading branch information
Byron Hambly
authored
Aug 23, 2021
1 parent
bb6e87f
commit f274981
Showing
5 changed files
with
37 additions
and
7 deletions.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
@recovery | ||
Feature: Recovery | ||
|
||
Scenario Outline: Blockchain database recovery | ||
Given I have 2 seed nodes | ||
And I have a base node B connected to all seed nodes | ||
When I mine <NumBlocks> blocks on B | ||
Then all nodes are at height <NumBlocks> | ||
When I stop node B | ||
And I run blockchain recovery on node B | ||
And I start base node B | ||
Then all nodes are at height <NumBlocks> | ||
Examples: | ||
| NumBlocks | | ||
| 10 | | ||
| 25 | | ||
| 50 | |
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
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
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