Fix test: refresh roundid in arena roundstates after vsize hacking
MODIFY
WalletWasabi.Tests/UnitTests/WabiSabi/Backend/PhaseStepping/StepOutputRegistrationTests.cs
WalletWasabi.Tests/UnitTests/WabiSabi/Backend/PhaseStepping/StepOutputRegistrationTests.cs
@@ -193,6 +193,9 @@ public class StepOutputRegistrationTests
var round = Assert.Single(arena.Rounds);
round.MaxVsizeAllocationPerAlice = 11 + 31 + MultipartyTransactionParameters.SharedOverhead;
+ // Refresh the Arena States because of vsize manupulation.
+ await arena.TriggerAndWaitRoundAsync(TimeSpan.FromSeconds(21));
+
using RoundStateUpdater roundStateUpdater = new(TimeSpan.FromSeconds(2), arena);
await roundStateUpdater.StartAsync(CancellationToken.None);
var task1 = AliceClient.CreateRegisterAndConfirmInputAsync(RoundState.FromRound(round), arenaClient, coin1, keyChain, roundStateUpdater, CancellationToken.None);

MODIFY
WalletWasabi.Tests/UnitTests/WabiSabi/Backend/PhaseStepping/StepTransactionSigningTests.cs
WalletWasabi.Tests/UnitTests/WabiSabi/Backend/PhaseStepping/StepTransactionSigningTests.cs
@@ -16,11 +16,19 @@ using WalletWasabi.WabiSabi.Client.RoundStateAwaiters;
using WalletWasabi.WabiSabi.Models;
using WalletWasabi.WabiSabi.Models.MultipartyTransaction;
using Xunit;
+using Xunit.Abstractions;
namespace WalletWasabi.Tests.UnitTests.WabiSabi.Backend.PhaseStepping;
public class StepTransactionSigningTests
{
+ private readonly ITestOutputHelper _output;
+
+ public StepTransactionSigningTests(ITestOutputHelper output)
+ {
+ _output = output;
+ }
+
[Fact]
public async Task EveryoneSignedAsync()
{
@@ -235,6 +243,10 @@ public class StepTransactionSigningTests
var round = Assert.Single(arena.Rounds);
round.MaxVsizeAllocationPerAlice = 11 + 31 + MultipartyTransactionParameters.SharedOverhead;
+
+ // Refresh the Arena States because of vsize manupulation.
+ await arena.TriggerAndWaitRoundAsync(TimeSpan.FromSeconds(21));
+
var arenaClient = WabiSabiFactory.CreateArenaClient(arena);
// Register Alices.

MODIFY
WalletWasabi.Tests/UnitTests/WabiSabi/Backend/PostRequests/RegisterOutputTests.cs
WalletWasabi.Tests/UnitTests/WabiSabi/Backend/PostRequests/RegisterOutputTests.cs
@@ -143,6 +143,9 @@ public class RegisterOutputTests
var round = arena.Rounds.First();
round.MaxVsizeAllocationPerAlice = 11 + 31 + MultipartyTransactionParameters.SharedOverhead;
+ // Refresh the Arena States because of vsize manupulation.
+ await arena.TriggerAndWaitRoundAsync(TimeSpan.FromSeconds(21));
+
round.Alices.Add(WabiSabiFactory.CreateAlice(round));
foreach (Phase phase in Enum.GetValues(typeof(Phase)))

Fix test: refresh roundid in arena roundstates after vsize hacking