Skip to content

Commit

Permalink
Fix all integration test run green due
Browse files Browse the repository at this point in the history
Due to new added integration test a collection attribute is needed to avoid test to run in parallel.
  • Loading branch information
schwartz-concordium committed Jul 24, 2023
1 parent cdaf529 commit 58d1543
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
10 changes: 6 additions & 4 deletions tests/IntegrationTests/Types/OnChainDataTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,19 @@
namespace Concordium.Sdk.Tests.IntegrationTests.Types;

[Trait("Category", "IntegrationTests")]
[Collection("Using Wallet")]
public sealed class OnChainDataTests : Tests
{
private const int Timeout = 120_000;
public OnChainDataTests(ITestOutputHelper output) : base(output)
{
}

[Fact(Timeout = 30_000)]
[Fact(Timeout = Timeout)]
public async Task WhenTransferWithoutMemo_ThenNull()
{
// Arrange
using var cts = new CancellationTokenSource(30_000);
using var cts = new CancellationTokenSource(Timeout);

var filePath = this.GetString("walletPath");
var walletData = await File.ReadAllTextAsync(filePath, cts.Token);
Expand All @@ -41,11 +43,11 @@ public async Task WhenTransferWithoutMemo_ThenNull()
}


[Fact(Timeout = 60_000)]
[Fact(Timeout = Timeout)]
public async Task GivenMemo_WhenTransfer_ThenMemoAbleToParse()
{
// Arrange
using var cts = new CancellationTokenSource(60_000);
using var cts = new CancellationTokenSource(Timeout);

var filePath = this.GetString("walletPath");
var walletData = await File.ReadAllTextAsync(filePath, cts.Token);
Expand Down
6 changes: 4 additions & 2 deletions tests/IntegrationTests/Types/RejectReasonTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,19 @@
namespace Concordium.Sdk.Tests.IntegrationTests.Types;

[Trait("Category", "IntegrationTests")]
[Collection("Using Wallet")]
public sealed class RejectReasonTests : Tests
{
private const int Timeout = 120_000;
public RejectReasonTests(ITestOutputHelper output) : base(output)
{
}

[Fact(Timeout = 60_000)]
[Fact(Timeout = Timeout)]
public async Task WhenTransferWithInsufficientAmount_ThenReject()
{
// Arrange
using var cts = new CancellationTokenSource(60_000);
using var cts = new CancellationTokenSource(Timeout);

var filePath = this.GetString("walletPath");
var walletData = await File.ReadAllTextAsync(filePath, cts.Token);
Expand Down

0 comments on commit 58d1543

Please sign in to comment.