-
Notifications
You must be signed in to change notification settings - Fork 146
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: Token Service unit tests with non-zero shard and realm config #17886
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Zhivko Kelchev <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #17886 +/- ##
============================================
- Coverage 69.01% 69.01% -0.01%
+ Complexity 23050 23048 -2
============================================
Files 2655 2655
Lines 99675 99686 +11
Branches 10289 10289
============================================
- Hits 68795 68794 -1
- Misses 26981 26992 +11
- Partials 3899 3900 +1
|
Coverage summary from CodacySee diff coverage on Codacy
Coverage variation details
Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: Diff coverage details
Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: See your quality gate settings Change summary preferencesCodacy stopped sending the deprecated coverage status on June 5th, 2024. Learn more |
Signed-off-by: Zhivko Kelchev <[email protected]>
LGTM @JivkoKelchev TY. but you have some conflicts. |
# Conflicts: # hedera-node/hedera-app-spi/src/testFixtures/java/com/hedera/node/app/spi/fixtures/ids/FakeEntityIdFactoryImpl.java # hedera-node/hedera-app/src/main/java/com/hedera/node/app/ids/AppEntityIdFactory.java # hedera-node/hedera-token-service-impl/src/test/java/com/hedera/node/app/service/token/impl/test/ReadableAccountStoreImplTest.java # hedera-node/hedera-token-service-impl/src/test/java/com/hedera/node/app/service/token/impl/test/handlers/BaseCryptoHandlerTest.java # hedera-node/hedera-token-service-impl/src/test/java/com/hedera/node/app/service/token/impl/test/handlers/CryptoCreateHandlerTest.java # hedera-node/hedera-token-service-impl/src/test/java/com/hedera/node/app/service/token/impl/test/handlers/CryptoDeleteAllowanceHandlerTest.java # hedera-node/hedera-token-service-impl/src/test/java/com/hedera/node/app/service/token/impl/test/handlers/CryptoGetAccountRecordsHandlerTest.java # hedera-node/hedera-token-service-impl/src/test/java/com/hedera/node/app/service/token/impl/test/handlers/CryptoTransferHandlerPureChecksTest.java # hedera-node/hedera-token-service-impl/src/test/java/com/hedera/node/app/service/token/impl/test/handlers/util/CryptoHandlerTestBase.java # hedera-node/hedera-token-service-impl/src/test/java/com/hedera/node/app/service/token/impl/test/handlers/util/CryptoTokenHandlerTestBase.java # hedera-node/hedera-token-service-impl/src/test/java/com/hedera/node/app/service/token/impl/test/handlers/util/TokenHandlerTestBase.java # platform-sdk/swirlds-state-api/src/main/java/com/swirlds/state/lifecycle/EntityIdFactory.java
Signed-off-by: Zhivko Kelchev <[email protected]>
Description:
Fix failing tests. Add
entityId
factory to all base classes and load the shard and realm values from the configuration.Related issue(s):
Fixes #17835
Notes for reviewer:
Checklist