From ce79b7c3f76a64b4a614758b907741f8dbf5e795 Mon Sep 17 00:00:00 2001 From: Sean Gilligan Date: Sat, 8 Jul 2023 17:09:38 -0700 Subject: [PATCH] SendToOwnersTestPlanSpec: add more asserts of actorAddress OMNI balance --- .../omni/test/rpc/sto/SendToOwnersTestPlanSpec.groovy | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/omnij-rpc/src/integ/groovy/foundation/omni/test/rpc/sto/SendToOwnersTestPlanSpec.groovy b/omnij-rpc/src/integ/groovy/foundation/omni/test/rpc/sto/SendToOwnersTestPlanSpec.groovy index abdf40a9..e29509cf 100644 --- a/omnij-rpc/src/integ/groovy/foundation/omni/test/rpc/sto/SendToOwnersTestPlanSpec.groovy +++ b/omnij-rpc/src/integ/groovy/foundation/omni/test/rpc/sto/SendToOwnersTestPlanSpec.groovy @@ -55,13 +55,24 @@ class SendToOwnersTestPlanSpec extends BaseRegTestSpec { def startMSC = OmniDivisibleValue.of(mscAvailable + mscReserved) def actorAddress = createFundedAddress(startBTC, startMSC, false) def currencyMSC = CurrencyID.of(ecosystem.value()) + + assertBalance(actorAddress, currencyMSC, startMSC, 0.divisible) + def currencySPT = getStoProperty(actorAddress, data) + if (currencySPT != CurrencyID.OMNI && currencySPT != CurrencyID.TOMNI) { + assertBalance(actorAddress, currencyMSC, startMSC, 0.divisible) + } + // Create a DEx offer to reserve an amount if (mscReserved > 0) { reserveAmountMSC(actorAddress, currencyMSC, mscReserved.divisible) } + if (currencySPT != CurrencyID.OMNI && currencySPT != CurrencyID.TOMNI) { + assertBalance(actorAddress, currencyMSC, mscAvailable, mscReserved) + } + when: "the owners are funded" def ownerIds = 0..