Skip to content

Commit

Permalink
Enhance test coverage for AddAssetQuantityPermissionTest and CommandP…
Browse files Browse the repository at this point in the history
…ermissionTest

Signed-off-by: dominious1 <[email protected]>
  • Loading branch information
dominious1 committed Nov 15, 2023
1 parent 9bbf0d1 commit 138dc93
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/integration/executor/add_asset_qty_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ TEST_P(AddAssetQuantityBasicTest, DestOverflowPrecision2) {
ASSERT_NO_FATAL_FAILURE(checkAssetQuantities(
kAdminId, {AssetQuantity{kAssetId, kAmountPrec2Max}}));

checkCommandError(addAsset(kAdminId, kAssetId, Amount{"0.01"}), 4);
checkCommandError(addAsset(kAdminId, kAssetId, Amount{"0.1"}), 4);
checkCommandError(addAssetWithTitle(kAdminId, kAssetId, Amount{"0.01"}), 4);
checkCommandError(addAssetWithTitle(kAdminId, kAssetId, Amount{"0.1"}), 4);

checkAssetQuantities(kAdminId, {AssetQuantity{kAssetId, kAmountPrec2Max}});
}
Expand All @@ -121,7 +121,7 @@ TEST_P(AddAssetQuantityPermissionTest, CommandPermissionTest) {
ASSERT_NO_FATAL_FAILURE(prepareState({}));

if (checkResponse(
addAsset(getActor(), kAssetId, kAmount, getValidationEnabled()))) {
addAssetWithTitle(getActor(), kAssetId, kAmount, "", getValidationEnabled()))) {
checkAssetQuantities(getActor(), {AssetQuantity{kAssetId, kAmount}});
} else {
checkAssetQuantities(getActor(), {});
Expand Down

0 comments on commit 138dc93

Please sign in to comment.