disable failing tests in release build
MODIFY
WalletWasabi.Tests/UnitTests/EventSourcing/InMemoryEventRepositoryTests.cs
WalletWasabi.Tests/UnitTests/EventSourcing/InMemoryEventRepositoryTests.cs
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
+using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
@@ -220,6 +221,8 @@ namespace WalletWasabi.Tests.UnitTests.EventSourcing
.SequenceEqual(new[] { "1" }));
}
+#if DEBUG
+
[Theory]
[InlineData(nameof(TestInMemoryEventRepository.AppendedSemaphore))]
public async Task AppendEvents_CriticalSectionConflicts_Async(string conflictAfter)
@@ -270,6 +273,10 @@ namespace WalletWasabi.Tests.UnitTests.EventSourcing
.SequenceEqual(new[] { "1" }));
}
+#endif
+
+#if DEBUG
+
[Theory]
[InlineData(nameof(TestInMemoryEventRepository.AppendedSemaphore))]
public async Task AppendEvents_CriticalAppendConflicts_Async(string conflictAfter)
@@ -321,6 +328,10 @@ namespace WalletWasabi.Tests.UnitTests.EventSourcing
.SequenceEqual(new[] { "1" }));
}
+#endif
+
+#if DEBUG
+
[Theory]
[InlineData(nameof(TestInMemoryEventRepository.ValidatedCallback))]
[InlineData(nameof(TestInMemoryEventRepository.AppendedCallback))]
@@ -363,6 +374,8 @@ namespace WalletWasabi.Tests.UnitTests.EventSourcing
Assert.True(result.SequenceEqual(expected));
}
+#endif
+
[Theory]
[InlineData(0, 1)]
[InlineData(0, 2)]

disable failing tests in release build