Fix prison test.
MODIFY
WalletWasabi.Tests/UnitTests/WabiSabi/Backend/UtxoPrisonTests.cs
WalletWasabi.Tests/UnitTests/WabiSabi/Backend/UtxoPrisonTests.cs
@@ -22,7 +22,7 @@ namespace WalletWasabi.Tests.UnitTests.WabiSabi.Backend
}
[Fact]
- public void PrisonChangeTracking()
+ public async Task PrisonChangeTrackingAsync()
{
var p = new Prison(Enumerable.Empty<Inmate>());
var currentChangeId = p.ChangeId;
@@ -48,6 +48,8 @@ namespace WalletWasabi.Tests.UnitTests.WabiSabi.Backend
Assert.NotEqual(currentChangeId, p.ChangeId);
currentChangeId = p.ChangeId;
+ await Task.Delay(50);
+
p.ReleaseEligibleInmates(TimeSpan.FromMilliseconds(1));
Assert.NotEqual(currentChangeId, p.ChangeId);
}

Fix prison test.

Signed-off-by: Kiminuo <kiminuo@protonmail.com>