Skip to content

Commit

Permalink
Fix test build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
limemloh committed Sep 23, 2024
1 parent 3d6a610 commit 4ea3da4
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
14 changes: 10 additions & 4 deletions backend/Tests/Api/GraphQL/Import/AccountImportHandlerTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,10 @@ public async Task SameBlock_AccountCreation_InwardsTransferTest()
AccountAmount: CcdAmount.FromCcd(1),
AccountIndex: receiverAccountId,
AccountAddress: receiverAccount,
null
null,
Schedule: ReleaseSchedule.Empty(),
Cooldowns: new List<Concordium.Sdk.Types.Cooldown>(),
AvailableBalance: CcdAmount.FromCcd(1)
)
},
Array.Empty<AccountInfo>());
Expand Down Expand Up @@ -143,11 +146,14 @@ public async Task GenesisBlock_AccountCreation_BalanceTest()
AccountAmount: CcdAmount.FromCcd(1),
AccountIndex: receiverAccountId,
AccountAddress: receiverAccount,
null
null,
Schedule: ReleaseSchedule.Empty(),
Cooldowns: new List<Concordium.Sdk.Types.Cooldown>(),
AvailableBalance: CcdAmount.FromCcd(1)
)
},
Array.Empty<AccountInfo>());
Array.Empty<AccountInfo>());

var blockDataPayload = new BlockDataPayloadBuilder()
.WithBlockInfo(blockInfo)
.WithBlockItemSummaries(new List<BlockItemSummary>())
Expand Down
7 changes: 5 additions & 2 deletions backend/Tests/Api/GraphQL/Import/AccountLookupTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,13 @@ public async Task GivenNoAccountInCacheOrDatabase_WhenCallingNodeWhichKnowsAccou
var clientMock = new Mock<IConcordiumNodeClient>();
var accountInfo = new AccountInfo(
AccountSequenceNumber.From(1UL),
CcdAmount.Zero,
CcdAmount.Zero,
new AccountIndex(accountIndex),
AccountAddress.From(uniqueAddress),
null
null,
Schedule: ReleaseSchedule.Empty(),
Cooldowns: new List<Concordium.Sdk.Types.Cooldown>(),
AvailableBalance: CcdAmount.Zero
);
clientMock.Setup(m => m.GetAccountInfoAsync(It.IsAny<IAccountIdentifier>(), It.IsAny<IBlockHashInput>(),
It.IsAny<CancellationToken>()))
Expand Down
2 changes: 1 addition & 1 deletion backend/concordium-net-sdk

0 comments on commit 4ea3da4

Please sign in to comment.