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

chore(lib/babe): fix TestBuildAndApplyExtrinsic for westend #3037

Merged
merged 26 commits into from
Jan 26, 2023

Conversation

jimjbrettj
Copy link
Contributor

@jimjbrettj jimjbrettj commented Jan 12, 2023

Changes

  • Fix all babe integration tests to use Westend
  • Pass in genesis, genesisTrie, and GenesisHeader to service builder in tests to allow for more flexible testing
  • Create a helper function to get Westend genesis
  • Create issue to address skipped test in this PR that require a more in-depth refactor or rewrite

Tests

go test --tags=integration ./lib/babe

Issues

#3019 #2704

Primary Reviewer

@EclesioMeloJunior

@jimjbrettj jimjbrettj force-pushed the jimmy/fixBabeTestsWestend branch from b65800b to 1b29ffc Compare January 13, 2023 18:13
@codecov
Copy link

codecov bot commented Jan 13, 2023

Codecov Report

Merging #3037 (cb623e6) into development (d7e1177) will decrease coverage by 0.02%.
The diff coverage is 46.15%.

Additional details and impacted files
@@               Coverage Diff               @@
##           development    #3037      +/-   ##
===============================================
- Coverage        51.62%   51.61%   -0.02%     
===============================================
  Files              220      220              
  Lines            28089    28087       -2     
===============================================
- Hits             14500    14496       -4     
- Misses           12298    12300       +2     
  Partials          1291     1291              

lib/babe/build.go Outdated Show resolved Hide resolved
lib/babe/build_integration_test.go Outdated Show resolved Hide resolved
lib/babe/babe_integration_test.go Outdated Show resolved Hide resolved
lib/babe/babe_integration_test.go Show resolved Hide resolved
lib/babe/babe_integration_test.go Outdated Show resolved Hide resolved
lib/babe/babe_integration_test.go Outdated Show resolved Hide resolved
lib/babe/build.go Show resolved Hide resolved
lib/babe/build.go Show resolved Hide resolved
lib/babe/build_integration_test.go Outdated Show resolved Hide resolved
lib/babe/build_integration_test.go Outdated Show resolved Hide resolved
lib/babe/babe_integration_test.go Show resolved Hide resolved
lib/babe/build_integration_test.go Outdated Show resolved Hide resolved
lib/babe/build_integration_test.go Outdated Show resolved Hide resolved
lib/babe/build_integration_test.go Outdated Show resolved Hide resolved
lib/babe/build_integration_test.go Show resolved Hide resolved
lib/babe/build_integration_test.go Outdated Show resolved Hide resolved
lib/babe/build_integration_test.go Outdated Show resolved Hide resolved
Copy link
Member

@EclesioMeloJunior EclesioMeloJunior left a comment

Choose a reason for hiding this comment

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

Nice! 🚀 🚀

Copy link
Contributor

@kishansagathiya kishansagathiya left a comment

Choose a reason for hiding this comment

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

lib/runtime/test_helpers.go Outdated Show resolved Hide resolved
lib/babe/verify_integration_test.go Outdated Show resolved Hide resolved
lib/babe/verify_integration_test.go Outdated Show resolved Hide resolved
lib/babe/verify_integration_test.go Outdated Show resolved Hide resolved
lib/babe/verify_integration_test.go Outdated Show resolved Hide resolved
lib/babe/helpers_test.go Outdated Show resolved Hide resolved
lib/babe/verify_integration_test.go Outdated Show resolved Hide resolved
lib/babe/verify_integration_test.go Outdated Show resolved Hide resolved
lib/babe/verify_integration_test.go Show resolved Hide resolved
lib/babe/verify_integration_test.go Outdated Show resolved Hide resolved
@jimjbrettj jimjbrettj force-pushed the jimmy/fixBabeTestsWestend branch from f7b4939 to aec80fa Compare January 25, 2023 18:58
Copy link

🎉 This PR is included in version 0.8.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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.

5 participants