-
Notifications
You must be signed in to change notification settings - Fork 458
Unit test review - Interoperability genesis state initialization/finalization #8980
Unit test review - Interoperability genesis state initialization/finalization #8980
Conversation
Codecov Report
@@ Coverage Diff @@
## release/6.1.0 #8980 +/- ##
==============================================
Coverage 84.33% 84.34%
==============================================
Files 652 652
Lines 23964 23963 -1
Branches 3487 3487
==============================================
+ Hits 20211 20212 +1
+ Misses 3753 3751 -2
|
framework/test/unit/modules/interoperability/mainchain/module.spec.ts
Outdated
Show resolved
Hide resolved
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.
- We can be consistent with other test suites in the SDK following the pattern of, describe blocks for each method and if it needs further describe it with words, for example, the below desc block doesn't really speak much,
https://github.com/LiskHQ/lisk-sdk/blob/17d63fb6fbe509b38288fafe681456d122d8b0ce/framework/test/unit/modules/interoperability/base_interoperability_module.spec.ts#L352
framework/test/unit/modules/interoperability/base_interoperability_module.spec.ts
Show resolved
Hide resolved
framework/test/unit/modules/interoperability/mainchain/module.spec.ts
Outdated
Show resolved
Hide resolved
framework/test/unit/modules/interoperability/mainchain/module.spec.ts
Outdated
Show resolved
Hide resolved
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.
I think this comment is not resolved yet
#8980 (review)
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.
Good job! Left some small comments.
framework/test/unit/modules/interoperability/base_interoperability_module.spec.ts
Show resolved
Hide resolved
framework/test/unit/modules/interoperability/base_interoperability_module.spec.ts
Outdated
Show resolved
Hide resolved
framework/test/unit/modules/interoperability/mainchain/module.spec.ts
Outdated
Show resolved
Hide resolved
framework/test/unit/modules/interoperability/mainchain/module.spec.ts
Outdated
Show resolved
Hide resolved
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.
only one minor comment remaining
framework/test/unit/modules/interoperability/base_interoperability_module.spec.ts
Outdated
Show resolved
Hide resolved
framework/test/unit/modules/interoperability/base_interoperability_module.spec.ts
Show resolved
Hide resolved
framework/test/unit/modules/interoperability/base_interoperability_module.spec.ts
Show resolved
Hide resolved
framework/test/unit/modules/interoperability/mainchain/module.spec.ts
Outdated
Show resolved
Hide resolved
framework/test/unit/modules/interoperability/mainchain/module.spec.ts
Outdated
Show resolved
Hide resolved
framework/test/unit/modules/interoperability/mainchain/module.spec.ts
Outdated
Show resolved
Hide resolved
bb2f8aa
to
24bf961
Compare
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.
Please apply this commit 97e6fee as it contains a minor bug
…zation_finalization
What was the problem?
This PR resolves #8378
How was it solved?
Went through source code & corresponding tests added/updated. Also mainchain:_verifyTerminatedStateAccounts(...) is updated.
How was it tested?
Added/updated tests are passing