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

feat:add sync test #3026

Open
wants to merge 12 commits into
base: develop
Choose a base branch
from

Conversation

gpBlockchain
Copy link

add sync test cases for dev.

packages/sync-test/package.json Outdated Show resolved Hide resolved
packages/sync-test/src/services/light-runner.ts Outdated Show resolved Hide resolved
packages/sync-test/src/services/ckb-runner.ts Outdated Show resolved Hide resolved
packages/sync-test/src/services/neuron-runner.ts Outdated Show resolved Hide resolved
packages/sync-test/src/services/neuron-runner.ts Outdated Show resolved Hide resolved
packages/sync-test/src/services/sqlite-data-comparator.ts Outdated Show resolved Hide resolved
packages/sync-test/src/utils/utils.ts Outdated Show resolved Hide resolved
packages/sync-test/src/utils/utils.ts Outdated Show resolved Hide resolved
Copy link
Collaborator

@homura homura left a comment

Choose a reason for hiding this comment

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

It would be better to keep a table for labeling the fixture files in the sync-test, such as

  • source/ckb-data/db.20000.tar.gz - a prepared fixture of 2000 blocks for testing the sync feature
  • source/neuron-cell-data/2000 - a validated dataset of sqlite. The sync test will compare the latest Neuron data generated data to this dataset.

packages/sync-test/src/services/sqlite-data-comparator.ts Outdated Show resolved Hide resolved
packages/sync-test/scripts/prepare_neuron_linux.sh Outdated Show resolved Hide resolved
packages/sync-test/src/tests/assert.test.ts Outdated Show resolved Hide resolved
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.

4 participants