Increase timeout to stabilize tests
MODIFY
WalletWasabi.Tests/UnitTests/WabiSabi/Client/ArenaClientTests.cs
WalletWasabi.Tests/UnitTests/WabiSabi/Client/ArenaClientTests.cs
@@ -27,7 +27,7 @@ namespace WalletWasabi.Tests.UnitTests.WabiSabi.Client
var config = new WabiSabiConfig { MaxInputCountByRound = 1 };
var round = WabiSabiFactory.CreateRound(config);
using Arena arena = await WabiSabiFactory.CreateAndStartArenaAsync(config, round);
- await arena.TriggerAndWaitRoundAsync(TimeSpan.FromSeconds(1));
+ await arena.TriggerAndWaitRoundAsync(TimeSpan.FromMinutes(1));
using var key = new Key();
var outpoint = BitcoinFactory.CreateOutPoint();
@@ -72,7 +72,7 @@ namespace WalletWasabi.Tests.UnitTests.WabiSabi.Client
Assert.Empty(amountCredentials.Valuable);
- await arena.TriggerAndWaitRoundAsync(TimeSpan.FromSeconds(1));
+ await arena.TriggerAndWaitRoundAsync(TimeSpan.FromMinutes(1));
Assert.Equal(Phase.ConnectionConfirmation, round.Phase);
// Phase: Connection Confirmation
@@ -86,7 +86,7 @@ namespace WalletWasabi.Tests.UnitTests.WabiSabi.Client
Assert.Single(amountCredentials.Valuable, x => x.Amount.ToMoney() == reissuanceAmounts.First());
Assert.Single(amountCredentials.Valuable, x => x.Amount.ToMoney() == reissuanceAmounts.Last());
- await arena.TriggerAndWaitRoundAsync(TimeSpan.FromSeconds(1));
+ await arena.TriggerAndWaitRoundAsync(TimeSpan.FromMinutes(1));
Assert.Equal(Phase.OutputRegistration, round.Phase);
var bobArenaClient = new ArenaClient(round.AmountCredentialIssuerParameters, round.WeightCredentialIssuerParameters, amountCredentials, weightCredentials, coordinator, new InsecureRandom());
@@ -109,7 +109,7 @@ namespace WalletWasabi.Tests.UnitTests.WabiSabi.Client
amountCredentials.Valuable,
weightCredentials.Valuable);
- await arena.TriggerAndWaitRoundAsync(TimeSpan.FromSeconds(21));
+ await arena.TriggerAndWaitRoundAsync(TimeSpan.FromMinutes(1));
Assert.Equal(Phase.TransactionSigning, round.Phase);
Assert.Equal(1, round.Coinjoin.Inputs.Count);

MODIFY
WalletWasabi.Tests/UnitTests/WabiSabi/Client/BobClientTests.cs
WalletWasabi.Tests/UnitTests/WabiSabi/Client/BobClientTests.cs
@@ -28,7 +28,7 @@ namespace WalletWasabi.Tests.UnitTests.WabiSabi.Client
var config = new WabiSabiConfig { MaxInputCountByRound = 1 };
var round = WabiSabiFactory.CreateRound(config);
using Arena arena = await WabiSabiFactory.CreateAndStartArenaAsync(config, round);
- await arena.TriggerAndWaitRoundAsync(TimeSpan.FromSeconds(1));
+ await arena.TriggerAndWaitRoundAsync(TimeSpan.FromMinutes(1));
var km = ServiceFactory.CreateKeyManager("");
var key = BitcoinFactory.CreateHdPubKey(km);
@@ -57,12 +57,12 @@ namespace WalletWasabi.Tests.UnitTests.WabiSabi.Client
Task confirmationTask = aliceClient.ConfirmConnectionAsync(TimeSpan.FromSeconds(3), CancellationToken.None);
- await arena.TriggerAndWaitRoundAsync(TimeSpan.FromSeconds(1));
+ await arena.TriggerAndWaitRoundAsync(TimeSpan.FromMinutes(1));
await confirmationTask;
Assert.Equal(Phase.ConnectionConfirmation, round.Phase);
- await arena.TriggerAndWaitRoundAsync(TimeSpan.FromSeconds(1));
+ await arena.TriggerAndWaitRoundAsync(TimeSpan.FromMinutes(1));
Assert.Equal(Phase.OutputRegistration, round.Phase);
@@ -82,7 +82,7 @@ namespace WalletWasabi.Tests.UnitTests.WabiSabi.Client
Assert.Empty(amountCredential.Valuable);
- await arena.TriggerAndWaitRoundAsync(TimeSpan.FromSeconds(1));
+ await arena.TriggerAndWaitRoundAsync(TimeSpan.FromMinutes(1));
Assert.Equal(Phase.TransactionSigning, round.Phase);
Assert.Equal(4, round.Coinjoin.Outputs.Count);

Increase timeout to stabilize tests