Skip to content

Commit d32538f

Browse files
committed
Fix unit test error
1 parent 07adf84 commit d32538f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/AElf.Contracts.Election.Tests/Full/ReleaseProfitsFromTreasury.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -383,11 +383,11 @@ public async Task CheckTreasuryProfitsDistribution_Test()
383383
})).Balance;
384384

385385
var profitTester = GetProfitContractTester(VoterKeyPairs[0]);
386-
var profitAmount = (await profitTester.GetProfitAmount.CallAsync(new GetProfitAmountInput
386+
var profitAmount = (await profitTester.GetAllProfitAmount.CallAsync(new GetAllProfitAmountInput
387387
{
388388
SchemeId = ProfitItemsIds[ProfitType.CitizenWelfare],
389389
Symbol = EconomicContractsTestConstants.NativeTokenSymbol
390-
})).Value;
390+
})).OneTimeClaimableProfitAmount;
391391
profitAmount.ShouldBeGreaterThan(0);
392392

393393
var profitResult = await profitTester.ClaimProfits.SendAsync(new ClaimProfitsInput
@@ -636,11 +636,11 @@ private async Task<long> GetProfitAmount(ProfitType type)
636636
break;
637637
}
638638

639-
return (await stub.GetProfitAmount.CallAsync(new GetProfitAmountInput
639+
return (await stub.GetAllProfitAmount.CallAsync(new GetAllProfitAmountInput
640640
{
641641
SchemeId = ProfitItemsIds[type],
642642
Symbol = EconomicContractsTestConstants.NativeTokenSymbol
643-
})).Value;
643+
})).OneTimeClaimableProfitAmount;
644644
}
645645

646646
private async Task<long> GetReleasedAmount()

0 commit comments

Comments
 (0)