Skip to content

Commit 6c8f761

Browse files
committed
fix test
[ci] Signed-off-by: Moritz Kiefer <moritz.kiefer@purelyfunctional.org>
1 parent 69c298c commit 6c8f761

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

apps/app/src/test/scala/org/lfdecentralizedtrust/splice/integration/tests/WalletTxLogTimeBasedIntegrationTest.scala

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import org.lfdecentralizedtrust.splice.wallet.store.{
2424
import com.digitalasset.canton.HasExecutionContext
2525
import com.digitalasset.canton.data.CantonTimestamp
2626
import org.lfdecentralizedtrust.splice.codegen.java.splice
27+
import org.lfdecentralizedtrust.splice.codegen.java.splice.amulet.{AppRewardCoupon, ValidatorRewardCoupon}
2728
import org.lfdecentralizedtrust.splice.codegen.java.splice.api.token.transferinstructionv1.TransferInstruction
2829
import org.lfdecentralizedtrust.splice.http.v0.definitions.DamlValueEncoding.members.CompactJson
2930
import org.lfdecentralizedtrust.splice.http.v0.definitions.Transfer.TransferKind
@@ -55,22 +56,33 @@ class WalletTxLogTimeBasedIntegrationTest
5556
.addConfigTransform((_, config) => ConfigTransforms.setAmuletPrice(amuletPrice)(config))
5657
}
5758

59+
override protected lazy val sanityChecksIgnoredRootCreates = Seq(
60+
AppRewardCoupon.TEMPLATE_ID_WITH_PACKAGE_ID,
61+
ValidatorRewardCoupon.TEMPLATE_ID_WITH_PACKAGE_ID
62+
)
63+
5864
"A wallet" should {
5965

6066
"handle app and validator rewards" taggedAs (org.lfdecentralizedtrust.splice.util.Tags.SpliceAmulet_0_1_14) in {
6167
implicit env =>
6268
val (aliceUserParty, bobUserParty) = onboardAliceAndBob()
6369
waitForWalletUser(aliceValidatorWalletClient)
6470
waitForWalletUser(bobValidatorWalletClient)
71+
val aliceValidatorParty = aliceValidatorBackend.getValidatorPartyId()
6572

6673
clue("Tap to get some amulets") {
6774
aliceWalletClient.tap(100.0)
6875
aliceValidatorWalletClient.tap(100.0)
6976
}
7077

7178
actAndCheck(
72-
"Alice transfers some CC to Bob",
73-
p2pTransfer(aliceWalletClient, bobWalletClient, bobUserParty, 40.0),
79+
"Alice transfers some CC to Bob and create rewards", {
80+
p2pTransfer(aliceWalletClient, bobWalletClient, bobUserParty, 40.0)
81+
createRewards(
82+
validatorRewards = Seq((aliceUserParty, 0.43)),
83+
appRewards = Seq((aliceValidatorParty, 0.43, false)),
84+
)
85+
}
7486
)(
7587
"Bob has received the CC",
7688
_ => bobWalletClient.balance().unlockedQty should be > BigDecimal(39.0),

0 commit comments

Comments
 (0)